2
votes

I'm hoping to implement an ASP.net Web API REST service to wrap complex object types and make them available via the OData protocol to compliment our existing WCF Data Service projects which easily expose database tables from an Entity Model.

What is the easiest way to provide a list of all available 'methods' on the Web API Service which is view-able from the browser? (Basically to replicate what WCF Data Services does OOTB when you navigate to the .svc page.)

2

2 Answers

1
votes

You will want to look at the ApiExplorer class.

There is a recent tutorial here.

There should be a help page in the project templates in the next release here.

Until then there is a Nuget version here.

3
votes

You can access the $metadata url i.e '~/$metadata' to get this information.