Base Resource Implementation

Hi,

I have got an API listening on “https://api.foo.de” with the following resources:

https://api.foo.de/customers
https://api.foo.de/orders

How can I build a Service that responds to request with contenttype “application/json” on the base resource “/” ?

[Route("/", “GET”] leads to “System.NotSupportedException: ‘RestPath ‘/’ on Type ‘xxx’ is not Valid’”.

Requests with contenttype “text/html” should still redirect to the “metadata” endpoint.

Greetings
Andre

You’ll need to use a Fallback Route.