RestApi Development
RestApi Development
*Rest stands for "representational State transfer" it's a set of simple rules for
how data is exchanged over the web.
*Rest API used HTTP methods like get post and delete that is to interact with
resources which could be anything data Media or even algorithms
*In rest each request from the client to the server must include all the
information necessary to
understand and process the request the server does not store any state about the
client session between request
* Error Handling
* Validate Requests
@Valid ensure incoming data is valid.
*Versioning
Versioning is used since over the time, API changes and grows.
URI Versioning - add v1/v2 in URI and use different controllers to access
different URI versions.
Header versioning - headers = "Accept-Version" = v1 (Complex)
*Security
HTTPS
OAuth
JWT
Spring Security