Loading API/openapi.yaml +117 −9 Original line number Diff line number Diff line Loading @@ -42,7 +42,12 @@ paths: operationId: getPing responses: '200': description: OK, world storage alive. description: OK, return the UUID of the World Link defined by the world storage. content: text/plain: schema: type: string example: "pong" /admin: get: summary: Get the state of the server. Loading @@ -50,6 +55,11 @@ paths: responses: '200': description: OK, world storage server ready. content: text/plain: schema: type: string example: "Server up and running" /version: get: summary: Get the version of the ARF API. Loading @@ -57,6 +67,11 @@ paths: responses: '200': description: Current version. content: text/plain: schema: type: string example: "1.0.0" ############## # TRACKABLES # Loading @@ -78,8 +93,18 @@ paths: responses: '200': description: OK, return the UUID of the Trackable defined by the world storage. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '201': description: Null response. content: text/plain: schema: type: string example: "" '400': $ref: '#/components/responses/400_BadRequest' '409': Loading @@ -102,6 +127,11 @@ paths: responses: '200': description: OK, return the UUID of the modified Trackable. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '400': $ref: '#/components/responses/400_BadRequest' '404': Loading @@ -125,6 +155,11 @@ paths: $ref: "#/components/schemas/Trackable" '201': description: Null response. content: text/plain: schema: type: string example: "" default: $ref: '#/components/responses/4xx_UnexpectedError' Loading Loading @@ -171,6 +206,11 @@ paths: responses: '200': description: OK, delete successful. content: text/plain: schema: type: string example: "Element succesfully deleted" '400': $ref: '#/components/responses/400_InvalidUUID' '404': Loading @@ -196,8 +236,18 @@ paths: responses: '200': description: OK, return the UUID of the World Anchor defined by the world storage. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '201': description: Null response. content: text/plain: schema: type: string example: "" '400': $ref: '#/components/responses/400_BadRequest' '409': Loading @@ -220,6 +270,11 @@ paths: responses: '200': description: OK, return the UUID of the modified World Anchor. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '400': $ref: '#/components/responses/400_BadRequest' '404': Loading @@ -243,6 +298,11 @@ paths: $ref: "#/components/schemas/WorldAnchor" '201': description: Null response. content: text/plain: schema: type: string example: "" default: $ref: '#/components/responses/4xx_UnexpectedError' Loading Loading @@ -289,6 +349,11 @@ paths: responses: '200': description: OK, delete successful. content: text/plain: schema: type: string example: "Element succesfuly deleted" '400': $ref: '#/components/responses/400_InvalidUUID' '404': Loading Loading @@ -318,8 +383,14 @@ paths: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '201': description: Null response description: Null response. content: text/plain: schema: type: string example: "" '400': $ref: '#/components/responses/400_BadRequest' '409': Loading @@ -342,6 +413,11 @@ paths: responses: '200': description: OK, return the UUID of the modified World Link. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '400': $ref: '#/components/responses/400_BadRequest' '404': Loading @@ -364,7 +440,12 @@ paths: items : $ref: "#/components/schemas/WorldLink" '201': description: Null response description: Null response. content: text/plain: schema: type: string example: "" default: $ref: '#/components/responses/4xx_UnexpectedError' Loading Loading @@ -410,7 +491,12 @@ paths: format: uuid responses: '200': description: OK description: OK, delete successful. content: text/plain: schema: type: string example: "Element succesfully deleted" '400': $ref: '#/components/responses/400_InvalidUUID' '404': Loading Loading @@ -619,8 +705,10 @@ components: code: type: integer format: int32 example: 406 message: type: string example: "Error 406" #------------------------------- # Reusable responses Loading @@ -643,15 +731,35 @@ components: ####################### 400_BadRequest: description: Bad request. content: text/plain: schema: type: string example: "Bad request" 400_InvalidUUID: description: Invalid UUID supplied. content: text/plain: schema: example: "The format of the UUID is incorrect" type: string 404_NotFoundUUID: description: Not found, could not find UUID in database. content: text/plain: schema: type: string example: "Element not found" 409_NotEmptyUUID: description: Invalid UUID, id must be a Nil value. content: text/plain: schema: type: string example: "The element you sent has already a value and can't be sent to the world storage" 4xx_UnexpectedError: # Can be referenced as '#/components/responses/GenericError' description: Unexpected error. Loading Loading
API/openapi.yaml +117 −9 Original line number Diff line number Diff line Loading @@ -42,7 +42,12 @@ paths: operationId: getPing responses: '200': description: OK, world storage alive. description: OK, return the UUID of the World Link defined by the world storage. content: text/plain: schema: type: string example: "pong" /admin: get: summary: Get the state of the server. Loading @@ -50,6 +55,11 @@ paths: responses: '200': description: OK, world storage server ready. content: text/plain: schema: type: string example: "Server up and running" /version: get: summary: Get the version of the ARF API. Loading @@ -57,6 +67,11 @@ paths: responses: '200': description: Current version. content: text/plain: schema: type: string example: "1.0.0" ############## # TRACKABLES # Loading @@ -78,8 +93,18 @@ paths: responses: '200': description: OK, return the UUID of the Trackable defined by the world storage. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '201': description: Null response. content: text/plain: schema: type: string example: "" '400': $ref: '#/components/responses/400_BadRequest' '409': Loading @@ -102,6 +127,11 @@ paths: responses: '200': description: OK, return the UUID of the modified Trackable. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '400': $ref: '#/components/responses/400_BadRequest' '404': Loading @@ -125,6 +155,11 @@ paths: $ref: "#/components/schemas/Trackable" '201': description: Null response. content: text/plain: schema: type: string example: "" default: $ref: '#/components/responses/4xx_UnexpectedError' Loading Loading @@ -171,6 +206,11 @@ paths: responses: '200': description: OK, delete successful. content: text/plain: schema: type: string example: "Element succesfully deleted" '400': $ref: '#/components/responses/400_InvalidUUID' '404': Loading @@ -196,8 +236,18 @@ paths: responses: '200': description: OK, return the UUID of the World Anchor defined by the world storage. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '201': description: Null response. content: text/plain: schema: type: string example: "" '400': $ref: '#/components/responses/400_BadRequest' '409': Loading @@ -220,6 +270,11 @@ paths: responses: '200': description: OK, return the UUID of the modified World Anchor. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '400': $ref: '#/components/responses/400_BadRequest' '404': Loading @@ -243,6 +298,11 @@ paths: $ref: "#/components/schemas/WorldAnchor" '201': description: Null response. content: text/plain: schema: type: string example: "" default: $ref: '#/components/responses/4xx_UnexpectedError' Loading Loading @@ -289,6 +349,11 @@ paths: responses: '200': description: OK, delete successful. content: text/plain: schema: type: string example: "Element succesfuly deleted" '400': $ref: '#/components/responses/400_InvalidUUID' '404': Loading Loading @@ -318,8 +383,14 @@ paths: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '201': description: Null response description: Null response. content: text/plain: schema: type: string example: "" '400': $ref: '#/components/responses/400_BadRequest' '409': Loading @@ -342,6 +413,11 @@ paths: responses: '200': description: OK, return the UUID of the modified World Link. content: text/plain: schema: type: string example: "777266da-e286-11ec-8fea-0242ac120002" '400': $ref: '#/components/responses/400_BadRequest' '404': Loading @@ -364,7 +440,12 @@ paths: items : $ref: "#/components/schemas/WorldLink" '201': description: Null response description: Null response. content: text/plain: schema: type: string example: "" default: $ref: '#/components/responses/4xx_UnexpectedError' Loading Loading @@ -410,7 +491,12 @@ paths: format: uuid responses: '200': description: OK description: OK, delete successful. content: text/plain: schema: type: string example: "Element succesfully deleted" '400': $ref: '#/components/responses/400_InvalidUUID' '404': Loading Loading @@ -619,8 +705,10 @@ components: code: type: integer format: int32 example: 406 message: type: string example: "Error 406" #------------------------------- # Reusable responses Loading @@ -643,15 +731,35 @@ components: ####################### 400_BadRequest: description: Bad request. content: text/plain: schema: type: string example: "Bad request" 400_InvalidUUID: description: Invalid UUID supplied. content: text/plain: schema: example: "The format of the UUID is incorrect" type: string 404_NotFoundUUID: description: Not found, could not find UUID in database. content: text/plain: schema: type: string example: "Element not found" 409_NotEmptyUUID: description: Invalid UUID, id must be a Nil value. content: text/plain: schema: type: string example: "The element you sent has already a value and can't be sent to the world storage" 4xx_UnexpectedError: # Can be referenced as '#/components/responses/GenericError' description: Unexpected error. Loading