chore(docs): Refactor API Reference (#1883)
This commit is contained in:
40
docs/api/admin/paths/swaps.yaml
Normal file
40
docs/api/admin/paths/swaps.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
get:
|
||||
operationId: GetSwaps
|
||||
summary: List Swaps
|
||||
description: Retrieves a list of Swaps.
|
||||
parameters:
|
||||
- in: query
|
||||
name: limit
|
||||
description: The upper limit for the amount of responses returned.
|
||||
schema:
|
||||
type: number
|
||||
default: '50'
|
||||
- in: query
|
||||
name: offset
|
||||
description: The offset of the list returned.
|
||||
schema:
|
||||
type: number
|
||||
default: '0'
|
||||
x-authenticated: true
|
||||
tags:
|
||||
- Swap
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
swaps:
|
||||
type: array
|
||||
items:
|
||||
$ref: ../components/schemas/swap.yaml
|
||||
count:
|
||||
type: integer
|
||||
description: The total number of items available
|
||||
offset:
|
||||
type: integer
|
||||
description: The number of items skipped before these items
|
||||
limit:
|
||||
type: integer
|
||||
description: The number of items per page
|
||||
Reference in New Issue
Block a user