comparison mod_rest/openapi.yaml @ 4496:8e9bff3cde4f

mod_rest/openapi: Add missing body for POST /kind/type/to query
author Kim Alvefur <zash@zash.se>
date Thu, 04 Mar 2021 01:28:26 +0100
parents cdc530ec76d6
children 4c262e5a02b5
comparison
equal deleted inserted replaced
4495:cdc530ec76d6 4496:8e9bff3cde4f
1 --- 1 ---
2 openapi: 3.0.1 2 openapi: 3.0.1
3 3
4 info: 4 info:
5 title: mod_rest API 5 title: mod_rest API
6 version: 0.3.0 6 version: 0.3.1
7 description: | 7 description: |
8 API for sending and receiving stanzas, in a REST-ish fashion or by 8 API for sending and receiving stanzas, in a REST-ish fashion or by
9 responding to webhooks. Multiple formats supported, including native XML 9 responding to webhooks. Multiple formats supported, including native XML
10 and a simplified JSON mapping. 10 and a simplified JSON mapping.
11 license: 11 license:
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'
44 responses: 46 responses:
45 200: 47 200:
46 $ref: '#/components/responses/success' 48 $ref: '#/components/responses/success'
47 49
48 /rest/ping/{to}: 50 /rest/ping/{to}: