What are Rest API?
What is difference between REST and RESTFULL API?
What is different HTTP code -
What is difference between Post and Put.
Post -It can have duplicate URI created for the same resource
Put- create only one URI
Successfull Response
200- ok
203-
204 -Data not found
201 -Data created
Client error response .
400-Bad Request
401-
403-Forbidden access-
the 403 Forbidden Error happens when the web page (or other resource) that you’re trying to open in your web browser is a resource that you’re not allowed to access. It’s called a 403 error because that’s the HTTP status code that the web server uses to describe that kind of error. You usually get this error for one of two reasons. The first is that the owners of the web server have properly set up access permissions, and that you’re really not allowed access to the resource. The second reason is that the owners of the web server have improperly set up permissions and you’re getting denied access when you really shouldn’t be.
404- Page not Found -
3-Redirection messages.
301-
Server Response Error.
500-Internal Server Errror
502- Bad Gateway
503- Service Unavailable
504- Gateway Timeout
What are different Component in REST API.
Request
URI
Resource
Content Type
Query Parameters
Header
Body
Message
RESPONSE
What assertions are used in SOAP .
--
https://restfulapi.net/rest-architectural-constraints/
Refer Links-
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
What is difference between REST and RESTFULL API?
What is different HTTP code -
What is difference between Post and Put.
Post -It can have duplicate URI created for the same resource
Put- create only one URI
Successfull Response
200- ok
203-
203 Non-Authoritative Information -204 -Data not found
201 -Data created
Client error response .
400-Bad Request
401-
Unauthorized Access.403-Forbidden access-
the 403 Forbidden Error happens when the web page (or other resource) that you’re trying to open in your web browser is a resource that you’re not allowed to access. It’s called a 403 error because that’s the HTTP status code that the web server uses to describe that kind of error. You usually get this error for one of two reasons. The first is that the owners of the web server have properly set up access permissions, and that you’re really not allowed access to the resource. The second reason is that the owners of the web server have improperly set up permissions and you’re getting denied access when you really shouldn’t be.
404- Page not Found -
3-Redirection messages.
301-
301 Moved Permanently Server Response Error.
500-Internal Server Errror
502- Bad Gateway
503- Service Unavailable
504- Gateway Timeout
What are different Component in REST API.
Request
URI
Resource
Content Type
Query Parameters
Header
Body
Message
RESPONSE
What assertions are used in SOAP .
--------*----
A REST message contains these components:
- Resource Path
- HTTP Verb
- Body
- Header
--
https://restfulapi.net/rest-architectural-constraints/
Architectural Constraints
REST defines 6 architectural constraints which make any web service – a true RESTful API.---------
Difference between REST and SOAP
- REST is an architectural style & SOAP is a protocol.
- REST stands for Representational State Transfer & SOAP stands for Simple Object Access Protocol
- REST can use SOAP web services because it is protocol independent and can use any protocol like HTTP, and SOAP & SOAP can’t use REST because it is a protocol.
- The bandwidth and resource required by REST are less as compared to SOAP.
- In REST we can use different data format such as Plain text, HTML, XML, JSON, etc. & In SOAP only XML format can be used.
- REST allows data of different formats, like Plain text, HTML, XML, JSON, etc. & SOAP defines its own security.
Refer Links-
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
No comments:
Post a Comment