This sample's routing is 1 depth
req: /movies/inception/actors/DiCaprio/
res: json DiCaprio birth, DiCaprio hair color etc....
you want to configure rest api server in 2depth.
/movies/{variable}/actors/{variable}/
/movies/{movie_name}/actors/{actor_name}/
What should I do?
Thank you for reading.
You can use the Route attribute or HTTP verb templates to configure the route template and set parameters.
Code like this:
Or
The result as below:
More detail information about routing, see Route templates and Attribute routing for REST APIs.