Understand the basics of how your web browser communicates with the app server.
Let's look into what web requests are made of
Anatomy of a web request
Going into the concepts of API and RESTful web services
API, Web API, REST API
Let's track everything we talked about in the browser
(most common a browser)
HTTP/1.1 404 NOT FOUND
HTTP/1.1 200 OK
GET /app/36853/views?currentViewId=3685340 HTTP/1.1
* HTTPS = HTTP Secure (any data sent/received is encrypted)
Hypertext Transfer Protocol
is a text based protocol
is used to structure requests and responses over the internet
What is HTTP?
Types of HTTP requests
This request is used to get a resource from a server. If you perform a `GET` request, the server looks for the data you requested and sends it back to you. In other words, a `GET` request performs a `READ` operation.
This request is used to create a new resource on a server. If you perform a `POST` request, the server creates a new entry in the database and tells you whether the creation is successful. In other words, a `POST` request performs a `CREATE` operation.
If you perform a `PUT` request, the server updates an entry in the database and tells you whether the update is successful. In other words, a `PUT` request performs an `UPDATE` operation.
'PUT' can also create a resource, but it is IDEMPOTENT.
request methods / HTTP verbs
This request is used to delete a resource from a server. If you perform a `DELETE` request, the server deletes an entry in the database and tells you whether the deletion is successful. In other words, a `DELETE` request performs a `DELETE` operation.
Uniform Resource Locator is a reference (an address) to a resource on the Internet
Wake up for this slide, it's important
Query string parameters
public Response getPortalViewInformation(@PathParam("paId") long pId, @PathParam("pwID") long pwID)