X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ves-nf-oam-adopter%2Fves-nf-oam-adopter-app%2Fdocs%2Fapi%2Fswagger%2Fopenapi.yaml;h=d3ae8e86a46d410c0f2791a2b21e9c986d4e8619;hb=516d663a767cb77a6e4dad6cba41fdb06edc25be;hp=6a02e637526caf152b54a04263033e17854b1131;hpb=478bd59ad277738b9788b73230168bdd183bcba7;p=oam%2Fnf-oam-adopter.git diff --git a/ves-nf-oam-adopter/ves-nf-oam-adopter-app/docs/api/swagger/openapi.yaml b/ves-nf-oam-adopter/ves-nf-oam-adopter-app/docs/api/swagger/openapi.yaml index 6a02e63..d3ae8e8 100644 --- a/ves-nf-oam-adopter/ves-nf-oam-adopter-app/docs/api/swagger/openapi.yaml +++ b/ves-nf-oam-adopter/ves-nf-oam-adopter-app/docs/api/swagger/openapi.yaml @@ -47,8 +47,9 @@ paths: items: type: string '400': - $ref: '#/components/responses/400Error' - + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' /adapter/{host}: delete: @@ -65,13 +66,13 @@ paths: responses: '200': - description: Successfully deleted an adapter + $ref: '#/components/responses/Success' '400': - description: Invalid request + $ref: '#/components/responses/BadRequest' '401': - description: Unauthorized + $ref: '#/components/responses/Unauthorized' '404': - description: adapter not found + $ref: '#/components/responses/NotFound' /adapter: post: @@ -87,12 +88,23 @@ paths: $ref: '#/components/schemas/Adapter' responses: '200': - description: Successfully returned a list of adapters + $ref: '#/components/responses/Success' '400': - $ref: '#/components/responses/400Error' + $ref: '#/components/responses/BadRequest' + '401': + $ref: '#/components/responses/Unauthorized' components: schemas: + ErrorMessage: + type: object + title: Error + properties: + status: + type: string + message: + type: string + Adapter: type: object properties: @@ -113,12 +125,24 @@ components: - mechId responses: - 400Error: + Success: + description: Succesfully excecuted + BadRequest: description: Invalid request content: application/json: schema: - type: object - properties: - message: - type: string \ No newline at end of file + $ref: '#/components/schemas/ErrorMessage' + Unauthorized: + description: Unhautorized request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorMessage' + NotFound: + description: Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorMessage' +