List of existing tags - noemenend/Nodepop GitHub Wiki
List of Advertisements
We must bear in mind that for this it is necessary to pass a token data by query to confirm the authentication, otherwise the api will not give us access to anything. For authenticating and get the token see the page:
Result: List of existing advertisement tags, group by tag name which will be one of these {work,lifestyle,mobile,motor} and number of advertisements that belongs to each tag.
URL : /api/v1/advertisements/tags?token=xxxxxxxxxxxxx
Method: GET
Example:
http://http://localhost:3000/api/v1/advertisements/tags
{"success":true,
"result":[{"tag":"lifestyle",
"advertisements":8},
{"tag":"mobile",
"advertisements":2},
{"tag":"motor",
"advertisements":2},
{"tag":"work",
"advertisements":6}]}