The Scotch.io public API sits at:
You can filter, sort, and include relationships using query params. There's more docs below but the URL you'll most likely use is:
https://scotch.io/api/f/posts?sort=-published_at&include=author,stats,tags,category
You'll probably want to sort by latest published. You can do that using ?sort=-published_at
https://scotch.io/api/f/posts?sort=-published_at
You can use &include=author,stats,tags,category
https://scotch.io/api/f/posts?include=author,stats,tags,category
This will probably be the URL you'll use the most:
https://scotch.io/api/f/posts?filter[user_id]=1
We follow the json:api spec that expects page[number]
and page[size]
. For instance to get only 5 posts:
https://scotch.io/api/f/posts?page[size]=5
You can show a single post by passing in the id as the final url segment.
https://scotch.io/api/f/posts/39720
In filtering can i filter using name ? Like for search implementation ?