Skip to content

Commit

Permalink
Fixed swagger.yaml body parameters. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-bates authored Mar 26, 2022
1 parent eb68d6f commit f1406b1
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions resources/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ paths:
produces:
- application/json
parameters:
- name: key
in: body
description: alias of URL
required: true
type: string
- name: url
in: body
description: URL to redirect to
required: true
type: string
- in: body
name: url
schema:
type: object
required:
- key
- url
properties:
key:
type: string
url:
type: string
responses:
"200":
schema:
Expand Down Expand Up @@ -91,16 +93,15 @@ paths:
description: URL key to operate on
required: true
type: string
- name: key
in: body
description: alias of URL
required: false
type: string
- name: url
in: body
description: URL to redirect to
required: false
type: string
- in: body
name: url
schema:
type: object
properties:
key:
type: string
url:
type: string
responses:
"200":
schema:
Expand Down Expand Up @@ -149,11 +150,13 @@ paths:
produces:
- application/json
parameters:
- name: clientSecret
in: body
description: New client secret
required: false
type: string
- in: body
name: user
schema:
type: object
properties:
clientSecret:
type: string
responses:
"200":
schema:
Expand Down

0 comments on commit f1406b1

Please sign in to comment.