Basic Information
Endpoint
http://{environment}.musicapi.com/{version}
|
environment
string,
one of [
stg, dev, test, prod], required |
|
|---|---|
|
version
string,
one of [
v1], required |
Getting Started
This is a getting started guide for the World Music API.
Legal
See http://legal.musicapi.com
Resources
/api
/api
¶
GET
/api
/api
¶
POST
/api
Request
Properties (object)
|
propString
string, required
|
|||||||
|---|---|---|---|---|---|---|---|
|
propStringArray1
Array of string, required
|
|||||||
|
ideas
Array of object, required
|
object[]
|
||||||
|
extIdeas
object, required
|
extIdeas
|
||||||
|
feedback
string
, default:
very nice, minimum length: 1, maximum length: 255, pattern: [a-zA-Z\s]*, required |
|||||||
|
propNumber
number, minimum: 0, maximum: 32, required
|
|||||||
|
propInteger
integer, minimum: 3, maximum: 5, required
|
|||||||
|
propBoolean
boolean, required
|
|||||||
|
propDate
date-only, required
|
|||||||
|
userPicture
file, required
|
|||||||
|
NilValue
object, required
|
NilValue
|
||||||
|
CatOrDog
Union of
ApiLib.Cat or ApiLib.Dog, required
|
|||||||
|
CatAndDog
ApiLib.Cat, required
|
CatAndDog
|
||||||
|
PossibleMeetingDate
ApiLib.CustomDate, required
|
Songs
Access to all songs inside the music world library.
/songs
¶
GET
/songs
Request
Query Parameters
|
genre
string, required
|
filter the songs by genre |
|---|---|
|
access_token
string, required
|
/songs
¶
POST
/songs
Request
Query Parameters
|
access_token
string, required
|
|---|
/songs/{songId}
¶
GET
/songs/{songId}
Request
Path Variables
|
songId
string, required
|
|---|
Response
Properties (object)
|
title
string, required
|
|
|---|---|
|
length
number, required
|
Examples
-
song1
{ "title": "My Song", "length": 12 } -
song2
{ "title": "Last", "length": 3 }
Examples
-
Example
str1234 str1234
deprecated
Type Reference
AnotherEntry ¶
This is just another entry to simulate that you can add facets also on JSON schema defined types. Although you can only add documentation-based facets.
Type Information
AnotherEntry (json)
Song ¶
Type Information
object
Examples
-
song1
{ "title": "My Song", "length": 12 } -
song2
{ "title": "Last", "length": 3 }