Skip to content

Commit

Permalink
Fixed the spec, added location
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-maddock committed Dec 22, 2023
1 parent d9ae570 commit 18d5754
Showing 1 changed file with 101 additions and 15 deletions.
116 changes: 101 additions & 15 deletions public/postman/schemas/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ servers:
- url: https://dev.arcane.city
description: Development
tags:
- name: blogs
- name: blogs
- name: default
- name: entities
- name: entity-statuses
- name: entity-types
- name: events
- name: forums
- name: forums
- name: links
- name: locations
- name: posts
- name: series
- name: tags
- name: threads
- name: threads
- name: users
components:
responses:
Expand Down Expand Up @@ -1519,17 +1519,6 @@ components:
items: {}
security:
- basicAuth: []
tags:
- name: events
- name: entities
- name: links
- name: series
- name: users
- name: tags
- name: blogs
- name: forums
- name: threads
- name: posts
paths:
/api/events:
post:
Expand Down Expand Up @@ -1803,7 +1792,7 @@ paths:
/api/entities/reset:
get:
tags:
- events
- entities
summary: Reset Entity filters
operationId: resetEntityFilters
responses:
Expand Down Expand Up @@ -2149,6 +2138,103 @@ paths:
description: Successful response
content:
application/json: {}
/api/locations:
get:
tags:
- locations
summary: Get Locations
operationId: getAllLocations
parameters:
- name: title
in: query
schema:
type: string
example: Google
- name: sort
in: query
required: false
description: A column to be used to sort the query
schema:
type: string
example: name
- name: direction
in: query
required: false
description: A string indicating the sort direction of the query (asc or desc)
schema:
type: string
example: asc
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/Location"
post:
tags:
- locations
summary: Create location
operationId: createLocation
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Location"
responses:
"201":
description: Successful response
content:
application/json: {}
/api/locations/{locationId}:
parameters:
- name: locationId
description: The unique identifier of the location
in: path
required: true
schema:
type: integer
readOnly: true
example: 1
get:
tags:
- locations
summary: Get Location
operationId: getLocationById
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/Location"
put:
tags:
- locations
summary: Update location
operationId: updateLocationById
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Location"
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/Location"
delete:
tags:
- locations
summary: Delete Location
operationId: deleteLocationById
responses:
"204":
description: Successful response
content:
application/json: {}
/api/series:
post:
tags:
Expand Down

0 comments on commit 18d5754

Please sign in to comment.