Skip to content

Unable to remove routes from route chart #1042

Closed
@llebc

Description

@llebc

DESCRIPTION

Sometimes there's a scenerio where I don't want to enable certain routes. I.E having a read-only route which has just a GET for the list and a GET for the find.

/users
/users/1

STEPS TO REPRODUCE

Create a new project and add a model + controller. All routes will be generated with relationships etc.

EXPECTED BEHAVIOR

Having a option to specify the routes which are allowed. No specification should lead to all routes being active.

[AllowedRoutes('find', 'index')]

ACTUAL BEHAVIOR

All routes are generated no matter the controller.

VERSIONS USED

  • JsonApiDotNetCore version:
  • ASP.NET Core version: 5
  • Entity Framework Core version: 5.0.9
  • Database provider: SQL Server 4.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions