All requests must have the following properties set in the request header.
Content-Type
= application/json
GET
| POST
| DELETE
| PUT
- Method:
Supports getting a users info, creating a user, updating, and deleting a user.
-
URL Params
-
Required:
uid=integer
-
Body Params
POST
|PUT
{ user: { user } }
-
-
Success Response:
- Code: 200 if successful
Content:{ user : user }
- Code: 200 if successful
-
Error Response:
- Code: 500 Bad Request
Content:{ “message” : “error message“ }
- Code: 500 Bad Request
-
Sample Call:
http://localbeats.com/api/user/23499b99s
GET
- Method:
Supports searching users in our userbase
-
URL Params
- Optional:
uid=integer
: ID of user making the queryname=string
: Query search nameartist=boolean
: True if only return artists, false return alllat
&lon
: Returns all users within 60 miles of the coordinatesgenres=[string]
: Return only users which have at least one of the genersevent_types=[string]
: Return only users which have at least one of the event typeslimit=integer
: Number of results to return, defaults to 15.skip=inteter
: Number of results to skip, defaults to 0. Used for pagination.
- Optional:
-
Success Response:
- Code: 200 if successful
Content:{ users : users }
- Code: 200 if successful
-
Error Response:
- Code: 500 Bad Request
Content:{ “message” : “error message“ }
- Code: 500 Bad Request
-
Sample Call:
http://localbeats.com/api/searchUsers/?uid=someUid&lat=40&lon=-111