-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcoding test exercise
73 lines (31 loc) · 1.19 KB
/
coding test exercise
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
62
63
64
65
66
67
68
69
70
71
72
73
Summary
Take a look at: http://ranker.owlin.com
Here we want to integrate support for pinboards.
We want to do this using a central API where multiple dashboards can 'pin' articles to one of their pinboards.
Therefor we need an API, that works like this:
http put /pinboards/[somepinboard-id]/[some-article-id]
{
"user":"Name of user that pinned the article"
"epoch":3983948
}
It also needs to remember when the article was pinned.
Deliverables
1. Working HTTP JSON REST API
- POST /pinboards
creates a new pinboard, and returns at least the id
- DELETE /pimboards/[somepinboard-id]
deletes an existing pinboard
- PUT /pinboards/[somepinboard-id]/[some-article-id]
pins an article to a pinboard
- DELETE /pinboards/[somepinboard-id]/[some-article-id]
unpins an article to a pinboard
- GET /pinboards/[somepinboard-id]
gets all the pins of one pinboard
2. Simple front-end that allows to create and delete pinboards (will only be used internally)
Freedom
Use any language, any database system, any framework you like.
Out of scope:
- authorization
- authentication
- scalability of datalayer
- design of front-end