chore(docs): Refactor API Reference (#1883)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
post:
|
||||
operationId: PostRegionsRegionCountries
|
||||
summary: Add Country
|
||||
description: Adds a Country to the list of Countries in a Region
|
||||
x-authenticated: true
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
required: true
|
||||
description: The ID of the Region.
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
required:
|
||||
- country_code
|
||||
properties:
|
||||
country_code:
|
||||
description: The 2 character ISO code for the Country.
|
||||
type: string
|
||||
externalDocs:
|
||||
url: >-
|
||||
https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
|
||||
description: See a list of codes.
|
||||
tags:
|
||||
- Region
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
region:
|
||||
$ref: ../components/schemas/region.yaml
|
||||
Reference in New Issue
Block a user