Skip to content

Commit

Permalink
feat(JAQPOT-4): add versioning to api (#13)
Browse files Browse the repository at this point in the history
* feat(JAQPOT-4): update mapping for one to many

* feat: add versioning to api
  • Loading branch information
alarv authored May 29, 2024
1 parent a1accc4 commit 5138e6f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/resources/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ info:
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
security:
- bearerAuth: []
servers:
- url: 'https://api.jaqpot.org'
description: Jaqpot API
paths:
/models:
/v1/models:
post:
summary: Create a new model
security:
Expand All @@ -37,6 +40,8 @@ paths:
description: Model created successfully
'400':
description: Invalid input
x-stoplight:
id: 9ffjy7o77jc41
get:
security:
- bearerAuth: []
Expand Down Expand Up @@ -112,7 +117,7 @@ components:
type: string
format: byte
description: A base64 representation of the actual model.
x-field-extra-annotation: "@com.fasterxml.jackson.annotation.JsonProperty(access = JsonProperty.Access.WRITE_ONLY)"
x-field-extra-annotation: '@com.fasterxml.jackson.annotation.JsonProperty(access = JsonProperty.Access.WRITE_ONLY)'
createdAt:
type: LocalDateTime
format: date-time
Expand Down Expand Up @@ -184,3 +189,4 @@ components:
type: LocalDateTime
description: The date and time when the feature was last updated.
example: '2023-01-01T12:00:00Z'

0 comments on commit 5138e6f

Please sign in to comment.