Commit 85d1e33a authored by Sophie Daringer's avatar Sophie Daringer
Browse files

Update swagger.yaml

parent 6abb2c3c
......@@ -54,3 +54,68 @@ paths:
- id
- name
- email
"/api/v1/users":
get:
summary: list all the users
produces:
- abpplication/json
responses:
'200':
description: successful
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: integer
type:
type: string
attributes:
type: object
properties:
name:
type: string
email:
type: string
required:
- id
- name
- email
"/api/v1/users/{id}":
get:
summary: show user
produces:
- application/json
parameters:
- name: id
in: path
type: string
required: true
responses:
'200':
description: successful
schema:
type: object
properties:
data:
type: object
properties:
id:
type: integer
type:
type: string
attributes:
type: object
properties:
name:
type: string
email:
type: string
required:
- id
- name
- email
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment