Possible Duplicate:
What exactly is RESTful programming?
What are RESTful web services? What would be an example of it?
What is the difference between the asmx web services and the WCF RESTful service?
Using the Idempotency feature is a way of preventing data corruption caused by sending duplicate requests. To send a post request that is "Idempotent safe", simply include an idempotency_key header. The idempotency_key must be unique and should only be used in one request.
On clicking on tabs you interchange state and you use ngOnInit() method every time when a state is changed to get the data.In this way, you can reduce API calls by using nested routing.
You can't stop the user from resubmitting a new request with the same ticket, but you can reject it on the server side, with a "Duplicate request" error. Right, but people do that on purpose - submit a form, press back because they know they need to correct something, submit form again.
REST is a client-server architecture which (among other things) leverages the full capacity of the HTTP protocol.
Some relevant points in REST:
http://restful.ex/items/
which would be a representation of a list of items.http://restful.ex/items/2
which would be a representation of a single item, identified by 2
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With