Controller Web API Standardization

1

I would like to know the following.

Imagine the following URIs:

(1) api / orders
(2) api / orders / 10
(3) api / orders / 10 / items

The URI (1) and (2) I am sure they would be inside a class called RequestsController, since to (3), I am doubt if it would be in the same or another class called Controller Items.

Which one is correct?

    
asked by anonymous 12.04.2017 / 19:58

1 answer

0

How is working micro service I believe the best way is to leave even

RequestController

api / orders

api / orders / 10

ItemController

api / item // all items api / item / {id} // item with given id

article talking about subject: link

    
12.04.2017 / 21:35