oc-peer/swagger/swagger.yml

129 lines
2.7 KiB
YAML
Raw Normal View History

2024-07-11 11:40:11 +02:00
swagger: "2.0"
info:
title: beego Test API
description: |
beego has a very cool tools to autogenerate documents for your API
version: 1.0.0
termsOfService: http://beego.me/
contact:
email: astaxie@gmail.com
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
2024-07-24 10:25:08 +02:00
basePath: /oc/
2024-07-11 11:40:11 +02:00
paths:
2024-08-26 12:07:54 +02:00
/peer/:
2024-07-11 11:40:11 +02:00
get:
tags:
2024-08-26 12:07:54 +02:00
- peer
2024-07-11 11:40:11 +02:00
description: |-
2024-08-26 12:07:54 +02:00
find all peer
2024-07-11 11:40:11 +02:00
<br>
2024-08-26 12:07:54 +02:00
operationId: PeerController.GetAll
2024-07-11 11:40:11 +02:00
responses:
"200":
2024-08-26 12:07:54 +02:00
description: '{peer} models.peer'
/peer/{id}:
2024-07-24 10:25:08 +02:00
get:
tags:
2024-08-26 12:07:54 +02:00
- peer
2024-07-24 10:25:08 +02:00
description: |-
2024-08-26 12:07:54 +02:00
find peer by peerid
2024-07-24 10:25:08 +02:00
<br>
2024-08-26 12:07:54 +02:00
operationId: PeerController.Get
parameters:
- in: path
name: id
description: the peer id you want to get
required: true
type: string
2024-07-24 10:25:08 +02:00
responses:
"200":
2024-08-26 12:07:54 +02:00
description: '{peer} models.peer'
put:
2024-07-11 11:40:11 +02:00
tags:
2024-08-26 12:07:54 +02:00
- peer
2024-07-11 11:40:11 +02:00
description: |-
2024-08-26 12:07:54 +02:00
create peers
2024-07-11 11:40:11 +02:00
<br>
2024-08-26 12:07:54 +02:00
operationId: PeerController.Update
2024-07-11 11:40:11 +02:00
parameters:
- in: path
2024-07-24 10:25:08 +02:00
name: id
2024-08-26 12:07:54 +02:00
description: the peer id you want to get
2024-07-11 11:40:11 +02:00
required: true
type: string
2024-08-26 12:07:54 +02:00
- in: body
name: body
description: The peer content
required: true
schema:
$ref: '#/definitions/models.peer'
2024-07-24 10:25:08 +02:00
responses:
"200":
2024-08-26 12:07:54 +02:00
description: ""
schema:
$ref: '#/definitions/models.peer'
/peer/search/{search}:
2024-08-06 11:09:38 +02:00
get:
tags:
2024-08-26 12:07:54 +02:00
- peer
2024-08-06 11:09:38 +02:00
description: |-
search workspace
<br>
2024-08-26 12:07:54 +02:00
operationId: PeerController.Search
2024-08-06 11:09:38 +02:00
parameters:
- in: path
2024-08-26 12:07:54 +02:00
name: search
2024-08-06 11:09:38 +02:00
description: the word search you want to get
required: true
type: string
responses:
"200":
description: '{workspace} models.workspace'
2024-08-26 12:07:54 +02:00
/status/:
post:
tags:
- status
description: |-
get peer status if it's alive
<br>
operationId: StatusController.Status
parameters:
- in: body
name: body
description: of
schema:
$ref: '#/definitions/list'
responses:
"200":
description: '{status} models.status'
/version/:
get:
tags:
- version
description: |-
get version
<br>
operationId: VersionController.GetAll
responses:
"200":
description: ""
definitions:
list:
title: list
type: object
models.peer:
title: peer
type: object
2024-07-11 11:40:11 +02:00
tags:
2024-08-26 12:07:54 +02:00
- name: status
description: |
Operations about workflow
- name: peer
2024-08-06 11:09:38 +02:00
description: |
Operations about workflow
2024-07-11 11:40:11 +02:00
- name: version
description: |
VersionController operations for Version