Mercurial > prosody-modules
diff 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 |
line wrap: on
line diff
--- a/mod_rest/res/openapi.yaml Tue Mar 23 20:27:44 2021 +0100 +++ b/mod_rest/res/openapi.yaml Tue Mar 23 22:08:38 2021 +0100 @@ -47,6 +47,20 @@ 200: $ref: '#/components/responses/success' + /rest/echo: + post: + summary: Build as stanza and return it for inspection. + tags: + - debug + security: + - basic: [] + - token: [] + requestBody: + $ref: '#/components/requestBodies/common' + responses: + 200: + $ref: '#/components/responses/success' + /rest/ping/{to}: get: tags: