Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rohansingh/84e8acc526d2cb7d329c048d1c248718 to your computer and use it in GitHub Desktop.
Save rohansingh/84e8acc526d2cb7d329c048d1c248718 to your computer and use it in GitHub Desktop.
{
"openapi": "3.0.0",
"info": {
"title": "Tidbyt API (http version)",
"description": "",
"version": "0.0.0-autogenerated"
},
"paths": {
"/v1/app-server/render/{deviceID}/{installationID}": {
"post": {
"parameters": [
{
"name": "deviceID",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "installationID",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RenderAndSendReply"
}
}
}
}
}
}
},
"/v1/app-server/push/{deviceID}": {
"post": {
"parameters": [
{
"name": "deviceID",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PushRenderedAppReply"
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"appID": {
"type": "string"
},
"webp": {
"type": "string",
"format": "byte"
},
"version": {
"type": "string"
}
},
"type": "object"
}
}
}
}
}
}
},
"security": [
{
"grpc-default-api-key": []
}
],
"servers": [
{
"url": "https://prod.tidbyt.com/"
}
],
"components": {
"securitySchemes": {
"grpc-default-api-key": {
"type": "apiKey",
"name": "key",
"in": "query",
"description": "Default API key."
}
},
"schemas": {
"RenderAndSendReply": {
"properties": {},
"type": "object"
},
"RenderedApp": {
"properties": {
"appID": {
"type": "string"
},
"webp": {
"type": "string",
"format": "byte"
},
"version": {
"type": "string"
}
},
"type": "object"
},
"PushRenderedAppReply": {
"properties": {},
"type": "object"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment