List Categories

List categories

GET https://sandbox.mnasati.com/v1/categories

This endpoint allows you to list all categories of the store.

Headers

NameTypeDescription

Content-Type

string

Application/JSON

Access Token

string

The JWT generated using the Authorization method.

{
   "status":true,
   "total":"33",
   "data":[
      {
         "category_id":"304",
         "category_name":"Mezze",
         "category_name_ar":"Mezze",
         "image":"https://mnasatistorage.fra1.digitaloceanspaces.com/manastitesting/uploads/category_image/43/category_304_1598996931_thumb.jpg",
         "product_total":"12"
      },
      {
         "category_id":"438",
         "category_name":"test cat",
         "category_name_ar":"test cat",
         "image":null,
         "product_total":"1"
      },
      {
         "category_id":"454",
         "category_name":"cat test",
         "category_name_ar":"cat test",
         "image":null,
         "product_total":"1"
      },
      {
         "category_id":"459",
         "category_name":"test app",
         "category_name_ar":"test  app",
         "image":null,
         "product_total":"0"
      },
      {
         "category_id":"460",
         "category_name":"test appr",
         "category_name_ar":"test app",
         "image":null,
         "product_total":"0"
      },
      {
         "category_id":"461",
         "category_name":"test 222",
         "category_name_ar":"test app  r",
         "image":null,
         "product_total":"0"
      },
      {
         "category_id":"462",
         "category_name":"testttttt",
         "category_name_ar":"testtttttt",
         "image":null,
         "product_total":"0"
      },
      {
         "category_id":"463",
         "category_name":"test test test",
         "category_name_ar":"test test",
         "image":null,
         "product_total":"0"
      },
      {
         "category_id":"464",
         "category_name":"ggggg",
         "category_name_ar":"ggggg",
         "image":null,
         "product_total":"0"
      },
      {
         "category_id":"471",
         "category_name":"ttttttt",
         "category_name_ar":"ttttttttt",
         "image":null,
         "product_total":"0"
      }
   ]
}

Examples

import http.client

conn = http.client.HTTPSConnection("sandbox.mnasati.com")

headers = {
    'Content-Type': "",
    'Authorization-Jwt': ""
    }

conn.request("POST", "/v1/categories", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))

Last updated