forked from plone/plone.restapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger-siteroot.yaml
61 lines (53 loc) · 1.5 KB
/
swagger-siteroot.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
52
53
54
55
56
57
58
59
60
61
swagger: '2.0'
# This is your document metadata
info:
version: "0.0.1"
title: Plone Rest API
description: A hypermedia API, with the portal root as the entry point. The client can ask for a REST API response by setting the 'Accept' HTTP header to 'application/json'
schemes:
- http
host: localhost:9090
consumes:
- application/json
produces:
- application/json
# Describe your paths here
paths:
# This is a path endpoint. Change it.
/Plone:
# This is a HTTP operation
get:
# Describe this verb here. Note: you can use markdown
description:
Gets the ste root object.
# Expected responses for this operation:
responses:
# Response code
200:
description: Successful response
# A schema describing your response object.
# Use JSON Schema format
schema:
title: Siteroot
type: object
required:
- \@id
properties:
\@id:
type: string
\@type:
type: string
member:
type: array
items:
required:
- \@id
properties:
\@id:
type: string
\@type:
type: string
title:
type: string
description:
type: string