TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
tri_inn
NA
1.2k
233k
Web API: Need to understand a web api attribute routing
Apr 25 2017 9:31 AM
got the code from this url http://stackoverflow.com/questions/21704505/how-do-i-use-webapi-rest-correctly-when-other-params-are-needed?rq=1
i am new in web api attribute routing
[Route(
"customers/{customerId}/orders"
)]
public
IEnumerable<Order> GetOrdersByCustomer(
int
customerId) { ... }
or
[Route(
"customers/{customerId}/orders/{orderId}"
)]
public
Order GetOrderByCustomer(
int
customerId,
int
orderId) { ... }
what is the meaning of 1st and 2nd route ?
how the first and second url will look like please add the same url for both above action ?
thanks
Reply
Answers (
1
)
SMS Gateway for bulk smsing
How to save or download excel file on server location in ASP