-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiary.apib
44 lines (36 loc) · 1.4 KB
/
apiary.apib
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
HOST: http://parallelbrains-baselayout.herokuapp.com/api
--- ParallelBrains-baselayout ---
---
This project is under continous development. Currently no authorisation is required to use the API. Please find the source code at https://github.com/ParallelBrains/Spring-Hibernate-PostgreSQL-Maven-Jetty
---
--
People Resources
CRUD operations for people
--
List of people
GET /people
< 200
< Content-Type: application/json
[{"id":4,"deleted":false,"created":1380467171918,"updated":1380467171921,"firstName":"deniz","lastName":"ozger"}]
Save new person
POST /people
> Content-Type: application/json
[{"id":,"deleted":false,"created":1380467171918,"updated":1380467171921,"firstName":"bilsay","lastName":"yildirim"}]
< 201
< Content-Type: application/json
[{"id":5,"deleted":false,"created":1380467171918,"updated":1380467171921,"firstName":"bilsay","lastName":"yildirim"}]
Get a person
GET /people/{id}
< 200
< Content-Type: application/json
{"id":4,"deleted":false,"created":1380467171918,"updated":1380467171921,"firstName":"deniz","lastName":"ozger"}
Update a person
PUT /people/{id}
> Content-Type: application/json
[{"id":4,"deleted":false,"created":1380467171918,"updated":1380467171921,"firstName":"engin","lastName":"ozger"}]
< 201
< Content-Type: application/json
[{"id":4,"deleted":false,"created":1380467171918,"updated":1380467171921,"firstName":"engin","lastName":"ozger"}]
Delete a person
DELETE /people/{id}
< 201