mStream/docs/API/db_metadata.md
2017-04-27 15:43:06 -04:00

45 lines
620 B
Markdown

**Get Metadata From DB **
----
Retrieves albums and artists that much a given string
* **URL**
/db/metadata
* **Method:**
`POST`
* **JSON Params**
**Required:**
`filepath` - String that will be searched for
* **JSON Example**
```
{
'filepath': '/path/to/file'
}
```
* **Success Response:**
* **Code:** 200 <br />
**Content:**
```
{
"filepath":"/path/to/file.mp3",
"metadata":{
"artist": "Artist",
"album": "Album",
"track": 1,
"title": "Song Title",
"year": 1990,
"album-art": "hash.jpg"
}
}
```