asp.net web api2 - optional route params, web api 2 -


I am trying to learn web API 2 / MVC, and need some help in trying to set up a controller Optional parameters, which are

My controller method looks like this: [Root ("{sender} / {displayLength} / {displayStart}")) Public HTTP sending message GetSenderMessages (string sender Now, displayLength, displaystart can be optional, they are being used to control paging in the mobile app.

P> If I send

< Blockquote>

// server / route / widen / 1

then complains of not matching this parameter.

Am I here to tell people

Have you tried this:?


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -