krgamestudios / news-server

An API centric news server.
zlib License
2 stars 1 forks source link

Retrieve only certain pieces of metadata #5

Closed Ratstail91 closed 1 year ago

Ratstail91 commented 3 years ago

It would be useful to filter what specific elements of the metadata you need. So if you wanted just the index, title and author, you would send this request:

GET /news/metadata?limit=999&fields=title,author
Ratstail91 commented 2 years ago

Ironically, graphQL would solve this. I'm not about to add that though.