Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ridhoq/soundslike-node-legacy
https://github.com/ridhoq/soundslike-node-legacy
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ridhoq/soundslike-node-legacy
- Owner: ridhoq
- Created: 2014-09-03T18:21:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-26T07:04:43.000Z (over 10 years ago)
- Last Synced: 2023-08-09T08:44:10.045Z (over 1 year ago)
- Language: JavaScript
- Size: 324 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#soundslike
##Models
###Songs
- Title (String)
- Artist (String)
- URL where song can be accessed (String)
- Created by (ObjectId)
- Edges ids (Array)###Edges
- Song 1 id (ObjectId)
- Song 2 id (ObjectId)
- User ids who voted on it (Array)##API
###Songs
####GET /api/songs (Admin)
Returns list of all songs
####GET /api/songs/:id
Returns a single song with the given id
####POST /api/songs (User)
Creates a song using the following input body structure:```
{
title: 'Can't Tell Me Nothing'
artist: 'Kanye West'
url: 'https://www.youtube.com/watch?v=E58qLXBfLrs'
}
```
####PUT /api/songs/:id (Admin)
Updates an existing song.
####DELETE /api/songs/:id (Song Owner/Admin)
Deletes an existing song.###Edges
####GET /api/edges/ (Admin)
Returns list of all edgess####GET /api/edges/:id
Return a specific edges relation using id####GET /api/edges/:songId1/:songId2
Return a specific edges relation using song ids####POST /api/edges/:songId/ (User)
Creates a song and edges relation with the specified song####POST /api/edges/:songId1/:songId2 (User)
Creates a edges relation for the two specified songs