implemented region route in api

This commit is contained in:
Mikayla Dobson
2022-09-27 14:04:56 -05:00
parent 3f7bf1a75a
commit d020fa8af4
5 changed files with 144 additions and 0 deletions

View File

@@ -376,6 +376,36 @@ paths:
description: "Access forbidden"
schema:
type: object
/regions:
get:
summary: "Get all product regions"
tags:
- region
responses:
200:
description: "Got region listing successfully"
schema:
type: object
404:
description: "Requested resource was not found"
schema:
type: object
/regions/{regionid}:
get:
summary: "Get one region by its ID"
tags:
- region
responses:
200:
description: "Got region listing successfully"
schema:
type: object
404:
description: "Requested resource was not found"
schema:
type: object
/user:
get:
summary: "Get all users"