mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-01 05:22:24 +08:00
29 lines
634 B
YAML
29 lines
634 B
YAML
get:
|
|
summary: 按指定条件列出区域
|
|
parameters:
|
|
- $ref: '../parameters/common.yaml#/offset'
|
|
- $ref: '../parameters/common.yaml#/limit'
|
|
responses:
|
|
200:
|
|
description: 区域列表信息
|
|
schema:
|
|
$ref: "../schemas/region.yaml#/RegionListResponse"
|
|
tags:
|
|
- regions
|
|
|
|
post:
|
|
summary: 新建一个区域
|
|
parameters:
|
|
- name: region
|
|
in: body
|
|
required: true
|
|
schema:
|
|
$ref: "../schemas/region.yaml#/RegionCreateInput"
|
|
responses:
|
|
200:
|
|
description: 区域信息
|
|
schema:
|
|
$ref: "../schemas/region.yaml#/RegionGetResponse"
|
|
tags:
|
|
- regions
|