Skip to content

Commit

Permalink
initial basic swagger yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
polyester committed May 17, 2016
1 parent 26b2cf7 commit 78fe966
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions swagger-siteroot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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



0 comments on commit 78fe966

Please sign in to comment.