-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.txt
52 lines (35 loc) · 1.48 KB
/
spec.txt
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
GET api/v1/tabs
Returns: [ 1, 3, 4, ... ]
GET api/v1/tabs?offset=10&limit=10
POST api/v1/tabs
Body: [{ authorName: "Matt Frear", artistName: "Blur", name: "Song 2", content: "tab content here" }, {...}, totalCount: 93 ]
GET, PUT api/v1/tabs/1
Returns: { id: 1, authorName: "Matt Frear", createdOn: "2014-01-23", modifiedOn: "2014-01-23", artistId: 2, artistName: "Blur", name: "Song 2", content: "tab content here" }
GET api/v1/tabs?name=Song 2
Returns: { id: 1, authorName: "Matt Frear", createdOn: "2014-01-23", modifiedOn: "2014-01-23", artistId: 2, artistName: "Blur", name: "Song 2", content: "tab content here" }
GET api/v1/tabs?fields=id,name
Returns: [ { id:1, name:"Song 2" }, { id: 2, name:"Ain't no Sunshine" } ... ]
GET api/v1/tabs?fields=id,name,artists(name)
Returns: [ { id:1, name:"Song 2", artist.name:"Blur" }, { id: 2, name:"Ain't no Sunshine", artist.name:"Bill Withers" } ... ]
GET api/v1/tabs/recent
Returns: [ 1, 3, 4 ] (10 most recent)
GET api/v1/tabs/count
Returns: { 50 }
GET api/v1/artists
Returns: [2, 4, ...]
GET api/v1/artists/2
Returns: { [ { id: 2, name: "Blur" } ... ] }
GET api/v1/artists/2/tabs
Returns: [ 1, 3, 4]
GET api/v1/books
Returns: { [5,6,7] }
GET api/v1/books/5
Returns: { [ { id: 5, name: "Singalongs", createdOn: "2014-01-23", modifiedOn: "2014-01-23" } ...] }
GET api/v1/books/5/tabs
{ [5, 6, 7] }
POST api/v1/books/5/tabs - add a tab to a book
{ 8 }
DELETE api/v1/books/5/tabs/ - delete a tab from a book
{ 8 }
GET
api/vi/search?q=foo+fighters