skim api and fill in some blanks
This commit is contained in:
parent
6ffb613a08
commit
14c8cabb44
39
openapi.yaml
39
openapi.yaml
@ -1,11 +1,10 @@
|
||||
openapi: 3.0.0
|
||||
info:
|
||||
title: StrafesNET - OpenAPI 3.0
|
||||
description: |-
|
||||
TBD
|
||||
title: StrafesNET Maps - OpenAPI 3.0
|
||||
description: Browse and manage maps.
|
||||
version: 0.1.0
|
||||
servers:
|
||||
- url: https://api.strafes.net/v2
|
||||
- url: https://maps.strafes.net/v1
|
||||
tags:
|
||||
- name: Times
|
||||
description: Retrieve player times
|
||||
@ -114,38 +113,6 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
/ranks:
|
||||
get:
|
||||
summary: Get list of ranks
|
||||
operationId: listRanks
|
||||
tags:
|
||||
- User
|
||||
parameters:
|
||||
- name: page
|
||||
in: query
|
||||
required: true
|
||||
schema:
|
||||
$ref: "#/components/schemas/Pagination"
|
||||
- name: filter
|
||||
in: query
|
||||
required: false
|
||||
schema:
|
||||
$ref: "#/components/schemas/RankFilter"
|
||||
responses:
|
||||
"200":
|
||||
description: Successful response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/Rank"
|
||||
default:
|
||||
description: General Error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
components:
|
||||
schemas:
|
||||
User:
|
||||
|
Loading…
Reference in New Issue
Block a user