Skip to content

Commit

Permalink
added a new "server" in openAPI spec. that allows to auomatically pop…
Browse files Browse the repository at this point in the history
…ulate the API url
  • Loading branch information
Agnul97 authored and Coduz committed Jul 31, 2023
1 parent e7de3c7 commit 8cb65b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rest-api/resources/src/main/resources/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ info:
All Eclipse Kapua REST API, except the Authentication endpoints that performs an Authentication, need an Authentication Token to be executed. You will retrieve such token as a response of one of the Authentication calls, in the form of a [JWT](https://jwt.io) as the value of the property `tokenId`. For every subsequent call, you need to pass such token in the `Authorization` HTTP Header, with the `Bearer` type.
servers:
- description: Kapua REST API Endpoint
- description: Kapua REST API Endpoint hosted where this definition file is hosted
url: /v1
- description: Kapua REST API Endpoint custom
url: "{scheme}://{host}:{port}/{basePath}"
variables:
scheme:
Expand Down

0 comments on commit 8cb65b5

Please sign in to comment.