mgroves / realworld-aspnet-couchbase

Conduit implementation: ASP.NET Core + Couchbase
https://realworld.io
MIT License
12 stars 4 forks source link

Endpoint: Get Tags #24

Open mgroves opened 1 year ago

mgroves commented 1 year ago

GET /api/tags

No authentication required, returns a List of Tags

mgroves commented 1 year ago

This is potentially VERY tricky endpoint, especially if tags are the wild west.

It might be a good idea to have an approved list of tags, otherwise this could potentially need to query EVERY article.

Or possibly have a separate document listing all tags, which gets updated when an article is created.

But again tricky, if tags are freeformed, they are potentially unbound, which means they might quickly exceed the size limits of a Couchbase document. So then it would require multiple tag documents.