Root¶
The whole API should be discoverable from this root resource by following hypermedia controls
Relations¶
name | availability | embedded | cardinality |
---|---|---|---|
mp:advertisements | always | no | 1 |
mp:categories | always | no | 1 |
mp:users | always | no | 1 |
mp:me | always | no | 1 |
mp:locations | always | no | 1 |
mp:searches | always | no | 1 |
Example¶
Retrieving the root resource :
Request :
GET /v2 HTTP/1.1 Host: api.marktplaats.nlResponse :
HTTP/1.1 200 OK Content-Type: application/json { "_links": { "self": { "href": "/v2", "title": "Starting point of Marktplaats API." }, "curies": [ { "href": "https://api.marktplaats.nl/docs/v2/rels/{rel}.html", "templated": true, "name": "mp" } ], "mp:advertisements": { "href": "/v2/advertisements", "title": "Access to advertisements." }, "mp:categories": { "href": "/v2/categories", "title": "Access to categories." }, "mp:users": { "href": "/v2/users", "title": "Access to users." }, "mp:me": { "href": "/v2/me", "title": "Access to the logged in user." }, "mp:locations": { "href": "/v2/locations{?postcode}", "templated": true, "title": "Access to locations." } }, "message": "Welcome to the Marktplaats API. Our goal is to be as self discoverable as possible. For API documentation, visit https://api.marktplaats.nl/docs/v2/index.html" }