Skip to content

Instantly share code, notes, and snippets.

@gaieges
Created February 12, 2023 01:46
Show Gist options
  • Save gaieges/4c880cb149f5d41b061b4b5db07764d7 to your computer and use it in GitHub Desktop.
Save gaieges/4c880cb149f5d41b061b4b5db07764d7 to your computer and use it in GitHub Desktop.
techspecs mobile device api spec
{
"openapi": "3.0.0",
"info": {
"version": "3.27",
"title": "Free",
"description": "Free Forever"
},
"servers": [
{
"url": "https://apis.blobr.app/f9g3z21kiqc0hz9s",
"description": "Blobr API Gateway"
}
],
"components": {
"securitySchemes": {
"api_key": {
"type": "apiKey",
"name": "x-blobr-key",
"in": "header"
}
}
},
"paths": {
"/en/v3/product/detail": {
"get": {
"responses": {
"200": {
"description": "Default response",
"content": {
"*/*": {
"schema": {}
}
}
}
},
"parameters": [
{
"in": "query",
"name": "productId",
"required": true,
"schema": {
"type": "string"
}
}
]
}
},
"/en/v3/brand/all": {
"get": {
"responses": {
"200": {
"description": "Default response",
"content": {
"*/*": {
"schema": {}
}
}
}
},
"parameters": [
{
"in": "query",
"name": "category",
"required": true,
"schema": {
"type": "string"
}
}
]
}
},
"/en/v3/product/search": {
"post": {
"responses": {
"200": {
"description": "Default response",
"content": {
"*/*": {
"schema": {
"properties": {
"Success": {
"type": "number"
},
"message": {
"type": "string"
},
"error": {
"type": "object",
"properties": {}
},
"data": {
"properties": {
"results": {
"items": {
"properties": {
"model": {
"type": "object",
"properties": {
"raw": {
"type": "string"
}
}
},
"brand": {
"type": "object",
"properties": {
"raw": {
"type": "string"
}
}
},
"version": {
"type": "object",
"properties": {
"raw": {
"type": "string"
}
}
},
"_meta": {
"properties": {
"score": {
"type": "number"
},
"id": {
"type": "string"
}
},
"type": "object"
},
"image_back": {
"type": "object",
"properties": {
"raw": {
"type": "string"
}
}
},
"image_front": {
"type": "object",
"properties": {
"raw": {
"type": "string"
}
}
},
"category": {
"type": "object",
"properties": {
"raw": {
"type": "string"
}
}
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"category": {
"type": "string",
"example": "all"
}
}
}
}
},
"description": ""
},
"parameters": [
{
"in": "query",
"name": "query",
"required": true,
"schema": {
"type": "string"
}
}
]
}
},
"/en/v3/category/all": {
"get": {
"responses": {
"200": {
"description": "Default response",
"content": {
"*/*": {
"schema": {
"properties": {
"Success": {
"type": "number"
},
"message": {
"type": "string"
},
"error": {
"type": "object",
"properties": {}
},
"data": {
"properties": {
"Category": {
"items": {
"properties": {
"name": {
"type": "string"
},
"document_count": {
"type": "number"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment