Stok Listesinde Arama Yapar

Stok arar.

GET/general/Stocks/SearchStock/{searchText}
Path parameters
searchText*string
Response

Stok arar.

Body
IDinteger (int32)
Namenullable string
UnitCodenullable string
UnitNamenullable string
Pricenumber (double)
SellerCodenullable string
BuyerCodenullable string
ManufacturerCodenullable string
IsActiveboolean
CreatedDatestring (date-time)
GTIPCodenullable string
Brandnullable string
Modelnullable string
Descriptionnullable string
Notenullable string
DeliveryCodenullable string
ShippingCodenullable string
TaxPercentnumber (double)
Request
const response = await fetch('/general/Stocks/SearchStock/{searchText}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "Name": "text",
    "UnitCode": "text",
    "UnitName": "text",
    "Price": 0,
    "SellerCode": "text",
    "BuyerCode": "text",
    "ManufacturerCode": "text",
    "IsActive": false,
    "CreatedDate": "2024-06-21T17:52:42.961Z",
    "GTIPCode": "text",
    "Brand": "text",
    "Model": "text",
    "Description": "text",
    "Note": "text",
    "DeliveryCode": "text",
    "ShippingCode": "text",
    "TaxPercent": 0
  }
]
var client = new RestClient("https://apitest.nilvera.com/general/Stocks/SearchStock/adfghjkl");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <API KEY>");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);