Add documentation of the json schemas

This commit is contained in:
Jonas Lochmann
2020-04-27 02:00:00 +02:00
parent 7a4cfd72c0
commit 6f0ba87199
461 changed files with 20587 additions and 8 deletions
@@ -0,0 +1,77 @@
{
"type": "object",
"properties": {
"deviceAuthToken": {
"type": "string"
},
"status": {
"$ref": "#/definitions/ClientDataStatus"
}
},
"additionalProperties": false,
"required": [
"deviceAuthToken",
"status"
],
"definitions": {
"ClientDataStatus": {
"type": "object",
"properties": {
"devices": {
"type": "string"
},
"apps": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"categories": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/CategoryDataStatus"
}
},
"users": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"apps",
"categories",
"devices",
"users"
],
"title": "ClientDataStatus"
},
"CategoryDataStatus": {
"type": "object",
"properties": {
"base": {
"type": "string"
},
"apps": {
"type": "string"
},
"rules": {
"type": "string"
},
"usedTime": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"apps",
"base",
"rules",
"usedTime"
],
"title": "CategoryDataStatus"
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ClientPullChangesRequest",
"$id": "https://timelimit.io/ClientPullChangesRequest"
}