tests (boilerplate)

This commit is contained in:
2022-11-23 20:21:49 +01:00
parent 1bc847cdc9
commit 8ea3fdcfef
10 changed files with 323 additions and 8 deletions

View File

@@ -785,6 +785,35 @@
}
}
},
"/api/sleep/{secs}": {
"post": {
"tags": [
"Common"
],
"summary": "Return 200 after x seconds",
"operationId": "api-common-sleep",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handler.Sleep.response"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/ginresp.apiError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/ginresp.apiError"
}
}
}
}
},
"/api/update.php": {
"get": {
"tags": [
@@ -2468,6 +2497,20 @@
}
}
},
"handler.Sleep.response": {
"type": "object",
"properties": {
"duration": {
"type": "number"
},
"end": {
"type": "string"
},
"start": {
"type": "string"
}
}
},
"handler.Update.response": {
"type": "object",
"properties": {