I have decorated my api controller such as:
[RoutePrefix("api/admin/notification")]
public class LanguageController : BaseController
Inside, I have this GET endpoint:
[HttpGet]
[Route("app/{productGuid}")]
public async Task<IHttpActionResult> GetAllNotificationsForApp([FromUri]string productGuid)
Now, I am assuming the correct way of accessing this resource is:
GET http://[api-url]/api/admin/notification/app/someguid
However, this yields a 404.
What I have tried:
-Removing [FromUri]
-Passing productGuid as part of querystring, i.e .../app?productGuid=something
(as opposed to /app/{productGuid}
)
Yes, I am using config.MapHttpAttributeRoutes();
and I've verified other api controllers that also use RoutePrefix to be working.
Am I missing something?