endrcn / eczane-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Eczane Backend

Kullanılabilir durumdaki eczane ve hastanelerin datasını gönderen API.

API

Get All Locations

GET https://eczaneapi.afetharita.com/api

Query Parametreleri

Type: string - optional

Örnek: GET https://eczaneapi.afetharita.com/api?type=Hastane

Possible values: hastaneler için Hastane, eczaneler için Eczane. Eğer type gönderilmezse bütün data dönecektir.

{   "ok": true,
    "data": [
        {
            "id": 1,
            "name": "CENGİZTOPEL ECZANESİ",
            "phone": "+904223213305",
            "address": "İSTİKLAL MAH. Cengiz Topel Cad. ÜÇGEN PARK KARŞISI MEYDAN APT. ALTI No:12/A, 44200 Battalgazi/Malatya, Türkiye",
            "addressDetails": "",
            "cityId": 44,
            "districtId": 608,
            "latitude": 38.38724298287497,
            "longitude": 38.32032953088737,
            "type": "Eczane",
            "subType": "Genel",
            "city": "Malatya",
            "district: "Battalgaazi",
            "typeId": 2,
            "subTypeId": 4
        },
        ...
]}

Get All Cities and Districts

GET https://eczaneapi.afetharita.com/api/cityWithDistricts

{
   "ok": true
   "data": [
           {
               "id": 1,
               "key": "Adana",
               "districts": [
                   {
                       "id": 1,
                       "key": "Yüreğir"
                   },
                   {
                       "id": 2,
                       "key": "Yumurtalık"
                   },
                   ...
            ]}]
}

License

MIT

About

License:Apache License 2.0


Languages

Language:JavaScript 98.5%Language:Dockerfile 1.5%