Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Attribute Routing: Design a scheme for token replacement in templates #738

Closed
rynowak opened this issue Jul 1, 2014 · 1 comment
Closed

Comments

@rynowak
Copy link
Member

rynowak commented Jul 1, 2014

We've had a few requests for the ability to write code like this:

[Route("api/{controller}/{action}/id?}")]
class BaseController : Controller
{
...
}

class BlogController : BaseController
{
...
}

Ultimately what the user wants here is for the {controller} token to be replaced with the controller name and the {action} token to be replaced with the action name(s).

We should consider whether or not this is truly a parameter (with parameter syntax) or is just token replacement (with different syntax).

Includes discussion about what the exact meaning of [Route("api/{controller}/{action}/id?}")] is. Is this token replacement? If we support token replacement, are these specific parameters still supported.

@rynowak rynowak added this to the 1.0.0-alpha3 milestone Jul 7, 2014
@rynowak rynowak self-assigned this Jul 7, 2014
@danroth27 danroth27 modified the milestones: 6.0.0-alpha3, 1.0.0-alpha3 Jul 7, 2014
@rynowak
Copy link
Member Author

rynowak commented Jul 28, 2014

Need to update my PR after receiving feedback. 1 day or less remaining

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants