We can roll the new featured tag[s] into /discover
Pros: No extra HTTP requests on the client
Cons: Kind weird, especially with pagination. Larger payload sizes.
GET /disover
{
"projects": [{ /* Projects with the featured flag set to true */ }, ...],
"featuredTags": {
"mozfest2015": [{ /* projects tagged mozfest2015 */ }, ...],
"makerparty2016": [{ /* projects tagged mozfest2015 */ }, ...]
}
}
I'm leaning toward 3. An initial request to a featured tags route should be really fast and making
/projects
more robust with some filtering options seems nice and forward thinking (query params are fine w. me).If we find that perf is an issue, we can look at combining requests, but I wouldn't expect it to be too bad...