Documentation

This documentation will help you get familiar with the resources of the Tarkhineh API and show you how to make different queries, so that you can get the most out of it.

Create Food

POST https://tarkhineh.liara.run/food/create/
{
    "title": "string",
    "description": "string",
    "price": 0,
    "discount": 0,
    "image": "string"
}
            

Remove Food

DELETE https://tarkhineh.liara.run/food/remove/
{
    "id": 0
}
              

Get Food

GET https://tarkhineh.liara.run/food/

Create Profile

POST https://tarkhineh.liara.run/authentication/profile/create/
{
    "firstname": "",
    "lastname": "",
    "email": "",
    "phone": "string",
    "birth_date": "",
    "username": ""
}
          

Remove Profile

DELETE https://tarkhineh.liara.run/authentication/profile/delete/
{
    "id": 0
}
          

Update Profile

PUT https://tarkhineh.liara.run/authentication/profile/update/
{
    "id": 0,
    "firstname": "",
    "lastname": "",
    "email": "",
    "phone": "",
    "birth_date": "",
    "username": ""
}
          

Get Profile

GET https://tarkhineh.liara.run/authentication/profile/

Create Address

POST https://tarkhineh.liara.run/authentication/address/create/
{
    "title": "string",
    "is_your_receiver_delivery": false,
    "phone": "string",
    "address": "string",
    "profile_id": 0
}
          

Remove Address

DELETE https://tarkhineh.liara.run/authentication/address/delete/
{
    "id": 0
}
          

Update Address

PUT https://tarkhineh.liara.run/authentication/address/update/
{
    "id": 0,
    "title": "",
    "is_your_receiver_delivery": false,
    "phone": "",
    "address": "",
    "profile_id": 0
}
          

Get Address

GET https://tarkhineh.liara.run/authentication/address/

Create Branch

POST https://tarkhineh.liara.run/branch/create/
{
    "title": "string",
    "address": "string",
    "phone_number": "string",
    "working_hours": "string",
    "image": "string"
}
          

Remove Branch

DELETE https://tarkhineh.liara.run/branch/remove/
{
    "id": 0
}
          

Update Branch

PUT https://tarkhineh.liara.run/branch/update/
{
    "id": 0,
    "title": "",
    "address": "",
    "phone_number": "",
    "working_hours": "",
    "image": ""
}
          

Get Branch

GET https://tarkhineh.liara.run/branch/