Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter categories #444

Closed
niraymak opened this issue May 26, 2021 · 2 comments · Fixed by #449
Closed

Filter categories #444

niraymak opened this issue May 26, 2021 · 2 comments · Fixed by #449
Assignees
Labels
Good first issue Good first issue to get to know the project internally. priority Only assign this label if it's asked to assign this label requires development

Comments

@niraymak
Copy link
Member

Is your feature request related to a problem? Please describe.
It should be possible to filter through categories.

Describe the solution you'd like
Implement a way to filter on categories. The endpoint should be able to return all projects with one or more categories depending on the ones selected.

If possible please reuse this endpoint: https://github.com/DigitalExcellence/dex-backend/blob/develop/API/Controllers/ProjectController.cs#L160

Production URL
https://dex.software/project/overview

Additional context

@niraymak niraymak added requires development Good first issue Good first issue to get to know the project internally. labels May 26, 2021
@waltersajtos
Copy link
Member

afbeelding
Also change the getAllCategories endpoint to public.

@niraymak niraymak added the priority Only assign this label if it's asked to assign this label label May 27, 2021
@waltersajtos
Copy link
Member

waltersajtos commented May 28, 2021

Probably also a good idea to get the naming consistent for the Category recourses.

public class ProjectCategoryResource
    {

        /// <summary>
        ///     Gets or sets the Id of the category.
        /// </summary>
        public int CategoryId { get; set; }
    }
	public class ProjectCategoryResourceResult
    {

        /// <summary>
        ///     Gets or sets the Id of the project category.
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        ///     Gets or sets the Name of the project category.
        /// </summary>
        public string Name { get; set; }

    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good first issue Good first issue to get to know the project internally. priority Only assign this label if it's asked to assign this label requires development
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants