mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add documentation of the json schemas
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user