Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothauer committed Feb 2, 2024
1 parent 24a8cd4 commit 29de88c
Showing 1 changed file with 48 additions and 44 deletions.
92 changes: 48 additions & 44 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,65 @@ info:
title: API docs
description: API documentation for the reparatur-initiativen.de API - mapped repair events platform
version: v1

servers:
- url: https://www.reparatur-initiativen.de/api
- url: https://www.reparatur-initiativen.de/api/v1/rest
description: Production server
- url: https://test.reparatur-initiativen.de/api
- url: https://test.reparatur-initiativen.de/api/v1/rest
description: Test server

paths:
/v1/rest/workshops/city/{city}:
/workshops/city/{city}:
get:
tags:
- "workshops"
summary: "returns a list of workshops in a city"
produces:
- "application/json"
parameters:
- name: "city"
in: "path"
description: "city name (e.g. Berlin), case insensitve"
required: true
schema:
type: string
responses:
200:
description: "successful operation"
schema:
type: "array"
items:
$ref: "#/definitions/Workshop"
definitions:
Workshop:
type: "object"
properties:
id:
type: "integer"
format: "int32"
name:
type: "string"
city:
type: "string"
postalCode:
type: "string"
street:
type: "string"
street2:
type: "string"
landingPage:
type: "string"
logoUrl:
type: "string"
category:
$ref: "#/definitions/Category"
Category:
type: "object"
properties:
id:
type: "integer"
format: "int32"
label:
type: "string"
iconUrl:
type: "string"
'200':
description: A list of workshops
content:
application/json:
schema:
$ref: '#/components/schemas/Workshop'

components:
schemas:
Workshop:
type: "object"
properties:
id:
type: "integer"
format: "int32"
name:
type: "string"
city:
type: "string"
postalCode:
type: "string"
street:
type: "string"
street2:
type: "string"
landingPage:
type: "string"
logoUrl:
type: "string"
category:
$ref: "#/components/schemas/Category"
Category:
type: "object"
properties:
id:
type: "integer"
format: "int32"
label:
type: "string"
iconUrl:
type: "string"

0 comments on commit 29de88c

Please sign in to comment.