Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 882 Bytes

searchArtist.md

File metadata and controls

51 lines (42 loc) · 882 Bytes

Search Artist

Get a list of results matching given query

URL : /API/searchArtist

METHOD: GET

PARAMETERS

  • name=[string]
    • Name of artist to query

RETURN

  • success: bool
  • result: array
    • id: string
    • name: string
    • origin: string
    • begin_year: string
    • end_year: string
    • genre: string

Success Response Example

{
  "success": true,
  "result": [
      {
        "id": "084308bd-1654-436f-ba03-df6697104e19",
        "name": "Green Day",
        "origin": "Berkeley",
		"begin_year": "1982",
		"end_year": null,
		"genre": "punk, pop, rock, reggae"
      }
    ]
}

Failure Response Example

{
	"success": false,
	"result": "No result found matching query"
}

Notes