Skip to content

[API /packs] Add ?no_category= and ?no_version= queries #88

Description

@bbfh-dev

In the new Smithed Redesign website there's an extra filtering option for filtering out / excluding parameters. (It was discussed during a weekly Smithed Town Hall on discord).

That would require the addition of 2 new queries: no_category and no_version.

/*
 * @route GET /packs
 * Get a list of packs which meet the specified criteria
 *
 * ...
 *
 * @query category: PackCategory[]?
 * Which categories should the pack be a part of
 *
 * @query no_category: PackCategory[]?              <--- NEW
 * Which categories must the pack not be a part of
 *
 * @query version: MinecraftVersion[]?
 * Which versions should the pack support
 *
 * @query no_version: MinecraftVersion[]?           <--- NEW
 * Which versions must the pack not support
 *
 *  ...
 */

It's important to note, that no_version isn't necessary from UX point of view (there aren't many uses for it, if any). However it is there for consistency (assuming it's not too complicated to implement).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions