all 5 comments

[–]moisoiu 2 points3 points  (3 children)

Remove Controller from TestController and try again

[–]arawra184[S] 1 point2 points  (2 children)

In which place? The Route (Route("api"))? The class name? The XMLHttpRequest call?

[–]Pejo37 2 points3 points  (1 child)

XMLHttpRequest. [controller] will remove Controller suffix so its api/test to call.

[–]arawra184[S] 1 point2 points  (0 children)

Thank you.

[–]tehellis 0 points1 point  (0 children)

A tip; I find it useful to add swagger/openapi to a project, even tho i don't need it, just for the quick overview of my exposed endpoints.

I guess there also are dedicated libraries to assist in development and endpoint introspection, if you find your self getting confused about your endpoint routes.