Drug Tipleri

Uç-nokta: /drug-types/:id

API URL

Header Parametreleri

parametre
tipi
açıklama

Authorization

string

Bearer <API Anahtarı>Drug Tipleri Kimlik Doğrulama

İstek Parametreleri

parametre
tipi
açıklama
zorunlu

id

integer

İlaca ait atanmış olan tekil ürün id bilgisi. Bu bilgiye /products metodunda bulunan id alanından alınabilir.

hayır

page

integer

Sayfa numarası Cevap Yapısı

hayır

per-page

integer

Bir sayfada bulunması istenen kayıt sayısı. Üst limit 500.

hayır

Cevap Parametreleri

parametre
tipi
açıklama

drug

drugType [ ]

drugType

parametre
tipi
açıklama

id

integer

drug tip id'si

name

string

drug tip ismi

curl İstek Örneği

curl --location 'https://api.vapi.co/drug-types' \
--header 'Authorization: Bearer <API Anahtarı>'
curl --location 'https://api.vapi.co/drug-types/1' \
--header 'Authorization: Bearer <API Anahtarı>'

postman İstek Örneği

Cevap örneği

{
    "data": [
        {
            "id": 1,
            "name": "İlaç"
        },
        {
            "id": 3,
            "name": "Kozmetik"
        },
        {
            "id": 4,
            "name": "Parenteral solüsyon"
        },
        {
            "id": 5,
            "name": "Enteral beslenme ürünü"
        },
        {
            "id": 9,
            "name": "Besin desteği"
        }
    ],
    "_links": {
        "self": {
            "href": "https://api.vapi.co/drug-types?page=1&per-page=200"
        },
        "first": {
            "href": "https://api.vapi.co/drug-types?page=1&per-page=200"
        },
        "last": {
            "href": "https://api.vapi.co/drug-types?page=1&per-page=200"
        }
    },
    "_meta": {
        "totalCount": 5,
        "pageCount": 1,
        "currentPage": 1,
        "perPage": 200
    },
    "success": true
}

Last updated