...
1swagger: '2.0'
2info:
3 version: '2.0'
4 title: Test API
5
6basePath: /api/2.0/
7schemes:
8 - https
9consumes:
10 - application/json
11produces:
12 - application/json
13paths:
14 '/sample/action/do-something':
15 post:
16 operationId: sampleDoSomethingAction
17 parameters:
18 - name: json body
19 in: body
20 required: true
21 schema:
22 $ref: "#/definitions/Actions_DoSomethingRequest"
23
24 responses:
25 '200':
26 description: Success
27 schema:
28 $ref: '#/definitions/Actions_DoSomethingResponse'
29 '401':
30 description: Unauthorized
31 '404':
32 description: Not Found
33
34definitions:
35 Actions_DoSomethingRequest:
36 type: object
37 properties:
38 client_id:
39 type: string
40
41 Actions_DoSomethingResponse:
42 type: object
43 properties:
44 result:
45 type: string
View as plain text