E
egarcia
Guest
Hello Geir Otto, When you work with a RESTful approach, the URIs represent resources and the entity names would a noun rather than a verb. (This is different than the RPC model where your URIs would correspond to an operation/procedure). I see that you have the need of working with CustomerId and SSN. Your API would look like the following: /api/v1/organization/{OrganizationId}/customer/ssn/{ssn} GET /api/v1/organization/{OrganizationId}/customer/{CustomerId} GET /api/v1/organization/{OrganizationId}/customer/ssn/{ssn} POST /api/v1/organization/{OrganizationId}/customer/ssn/{ssn} DELETE /api/v1/products/organization/{OrganizationId} GET /api/v1/organization/{OrganizationId}/product/{CustomerId} GET Take a look at the RESTful APIs commonly used on the internet. I hope this helps, Edsel
Continue reading...
Continue reading...