The service and user routes have been updated to redirect to the appropriate pages on successful completion and return meaningful JSON messages if something has failed.
These JSON messages can then be displayed in message boxes on the requesting page.
I will need to document the requirements and behaviour of the API routes so that it is clear how to consume them.
I have also added comments to the top of the files describing the URL required to invoke the routes
The service and user routes have been updated to redirect to the appropriate pages on successful completion and return meaningful JSON messages if something has failed.
These JSON messages can then be displayed in message boxes on the requesting page.
I will need to document the requirements and behaviour of the API routes so that it is clear how to consume them.
I have also added comments to the top of the files describing the URL required to invoke the routes