G
goo
Guest
11.7/12.0 I am about to start a project where we are going to implement some REST services. We are planning a structure like this: /api/v1/customers/{OrganizationId}/getCustomerBySSN/{ssn} GET /api/v1/customers/{OrganizationId}/getCustomerByCustomerId/{CustomerId} GET /api/v1/customers/{OrganizationId}/updateCustomerBySSN/{ssn} POST /api/v1/customers/{OrganizationId}/deleteCustomerBySSN/{ssn} DELETE /api/v1/products/{OrganizationId} GET /api/v1/{OrganizationId}/getProductsByCustomerId/{customers} GET and so on.... first of all, do I need to make a handler for each REST structure (like the above)? I am not going to use the business structure of progress. I am kind of thinking of having the webhandler as a transporter. All business logic will be in another layer, as we may call it direct or using Appserver calls. I was thinking implementing something like this: /api/{Version}/{MethodType}/{OrganizationId}/{Method}/.... Any thoughts? Geir Otto
Continue reading...
Continue reading...