Skip to content

Commit

Permalink
Bugfix #46
Browse files Browse the repository at this point in the history
  • Loading branch information
heming-langrenn committed Jul 14, 2024
1 parent 3027027 commit 7e4ad6f
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 158 deletions.
78 changes: 76 additions & 2 deletions specification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ paths:
responses:
201:
description: Created


/photos:
post:
tags:
Expand Down Expand Up @@ -149,6 +147,82 @@ paths:
responses:
204:
description: No content
/config:
post:
tags:
- config
security:
- bearerAuth: []
description: Add a new config
requestBody:
description: The new config to be created
content:
application/json:
schema:
$ref: "#/components/schemas/Config"
responses:
201:
description: Created
get:
parameters:
- name: key
in: path
description: config key
required: true
schema:
type: string
- name: eventId
in: path
description: Id of event config applies to
required: true
schema:
type: string
format: uuid
description: Get a config
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/Config"
put:
tags:
- config
security:
- bearerAuth: []
description: Update a config with new value
responses:
204:
description: No content
/config/{id}:
delete:
tags:
- config
security:
- bearerAuth: []
description: Delete a config
responses:
204:
description: No content
/configs:
get:
parameters:
- name: eventId
in: path
description: Id of event config applies to
required: true
schema:
type: string
format: uuid
description: Get a config
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/ConfigCollection"
securitySchemes:
bearerAuth:
type: http
Expand Down
156 changes: 0 additions & 156 deletions tests/contract/test_status.py

This file was deleted.

0 comments on commit 7e4ad6f

Please sign in to comment.