forked from ksato9700/pubserver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpubserver.raml
49 lines (49 loc) · 1.05 KB
/
pubserver.raml
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
#%RAML 0.8
title: publishing public server
baseUri: http://pubserver-master.herokuapp.com/api/{version}
#baseUri: http://localhost:8000/api/{version}
version: v0.1
mediaType: application/json
/books:
get:
description: get a list of books
queryParameters:
name:
description: filter by name
post:
description: register a book
/{book_id}:
get:
description: get a book
/content:
get:
description: get contents of a book
queryParameters:
format:
enum:
- txt
- html
- epub
- archive
/persons:
get:
description: get a list of persons
queryParameters:
name:
description: filter by name
post:
description: register a person
/{person_id}:
get:
description: get a person
/workers:
get:
description: get a list of workers
queryParameters:
name:
description: filter by name
post:
description: register a worker
/{worker_id}:
get:
description: get a worker