Mercurial > prosody-modules
comparison mod_rest/res/openapi.yaml @ 4529:c6d44e1fb4d9
mod_rest: Document the /echo endpoint in the openapi spec
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Mar 2021 22:08:38 +0100 |
parents | fd15e7f00ff5 |
children | cfe196f88e96 |
comparison
equal
deleted
inserted
replaced
4528:fd15e7f00ff5 | 4529:c6d44e1fb4d9 |
---|---|
39 - token: [] | 39 - token: [] |
40 parameters: | 40 parameters: |
41 - $ref: '#/components/parameters/kind' | 41 - $ref: '#/components/parameters/kind' |
42 - $ref: '#/components/parameters/type' | 42 - $ref: '#/components/parameters/type' |
43 - $ref: '#/components/parameters/to' | 43 - $ref: '#/components/parameters/to' |
44 requestBody: | |
45 $ref: '#/components/requestBodies/common' | |
46 responses: | |
47 200: | |
48 $ref: '#/components/responses/success' | |
49 | |
50 /rest/echo: | |
51 post: | |
52 summary: Build as stanza and return it for inspection. | |
53 tags: | |
54 - debug | |
55 security: | |
56 - basic: [] | |
57 - token: [] | |
44 requestBody: | 58 requestBody: |
45 $ref: '#/components/requestBodies/common' | 59 $ref: '#/components/requestBodies/common' |
46 responses: | 60 responses: |
47 200: | 61 200: |
48 $ref: '#/components/responses/success' | 62 $ref: '#/components/responses/success' |