-
Notifications
You must be signed in to change notification settings - Fork 3
/
openapi-xml.yaml
51 lines (50 loc) · 1.24 KB
/
openapi-xml.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
openapi: "3.0.2"
info:
title: MWNZ companies source XML
version: "1.0"
description: Your API should use this API to get a company and transform it to align with the evaluation-output.yaml
servers:
- url: https://raw.githubusercontent.com/MiddlewareNewZealand/evaluation-instructions/blob/main
paths:
/xml-api/{id}.xml:
get:
tags:
- Companies XML
parameters:
- name: id
description: Company ID
in: path
required: true
schema:
type: number
responses:
"200":
description: OK
content:
application/xml:
schema:
$ref: "#/components/schemas/XmlCompany"
examples:
MWNZ:
value:
id: 1
name: MWNZ
description: "..is awesome"
Other:
value:
id: 2
name: Other
description: "....is not"
components:
schemas:
XmlCompany:
type: object
xml:
name: Data
properties:
id:
type: integer
name:
type: string
description:
type: string