Skip to content

Is Attribute Routing Supported #57

@KenBrannigan

Description

@KenBrannigan

@Sebazzz first thank you for creating this package it is exactly what I was looking for.

Currently I am using the following route:

config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/v{version}/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);

My controllers are in the following directory structure:

Controllers
-Version1
--AccountController.cs
-Version2
--AccountController.cs (Inherits from Version1 controller)

Everything works perfectly but I wanted to see if your package supports attribute routing and if it does will it work when the Version2 controller is inheriting from the Version1 controller? I did attempt this but I got some key error which I have seen posted in the issues list before.

I am currently using version 2.8.0 of the package.

Thank you,
Ken

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions