Question

In: Computer Science

1.Explain what REST is and what are the REST variables 2. Explain how the Loc8r application...

1.Explain what REST is and what are the REST variables

2. Explain how the Loc8r application can be modified to confirm with API architecture?

Solutions

Expert Solution

  • 1.Explain what is REST and its variables
  • REST stands for Representational State Transfer.
  • REST API is becomming an importrant part for web development.
  • REST API acts an interface between the datasore/database server and web appliction.
  • REST API recieves, accepts ,handles and responses the requests made by web applications/client
  • Whenever client requests for the resource from REST API which is an interface between data server and the client it accepts the request and responses back to the client.
  • Features of the REST are that it has proper documentation and it gives proper error messages.
  • REST API has four variables or methods those are

1.POST

2.READ

3.PUT

4.DELETE.

  • 1.POST: POST method is used by the client in order to create a request.
    • POST method helps to send the data safely as it will not be visible in URL link.
  • 2.GET: GET method is used in order to read the data.
    • After recieving resource get request from client, REST API accepts the request and collects the requested resource from the data server and converts it into the requested format and gathers the data/resource as per the requested resource ID and sents the data back to the client.
  • 3.PUT: PUT is used to make some modifications/changes/update in the existing resource in the data server.
    • Now whenever the user wants to make some changes in the existing resource/data instead of GET request it sends a PUT request to the REST API.
    • REST API accepts the request, searches for the resource with the help of resource ID and makes the modifications needed and returns the newly modified resource to the client with message notifying the client that the requested modifications have made successfully.
  • 4.DELETE: DELETE method is used to make a request to delete existing resource from the data server.
    • Whenever client wants to delete an existing resource from the data serever it requests REST API with the help of DELETE method.
    • REST API accepts the requests, searches for the resource in the data server with the help of the resource ID and deletes the request by sending a notification to the client informing that the requested task has been completed.
  • The scenario is discussed for a single request and response but the REST API recieves multiple requests and responses to it in a similar manner as explained above.

Refer the figure below :


Related Solutions

1) What are the 2 variables in a Regression Analysis and what are their levels of...
1) What are the 2 variables in a Regression Analysis and what are their levels of measurement? 2) What is the Chi-Square Goodness of Fit test and why would it be applied to a data set?
1. List the steps for securing a client device 2. Define application security 3. Explain how...
1. List the steps for securing a client device 2. Define application security 3. Explain how physical security can be used for protection Book to use: Michael T. Simpson, Nicholas Antill, Hands-On Ethical Hacking and Network Defense, Third Edition. (Chapter 9) PLEASE ANSWER ALL QUESTIONS!!!
What is the General Equation? Explain the variables and parts of the equation. How is the...
What is the General Equation? Explain the variables and parts of the equation. How is the GEneral Energy Equation applies to Water PUmps?
Question: 1) What is Central Limit Theorem from linear sum of variables? Please Explain it. 2)...
Question: 1) What is Central Limit Theorem from linear sum of variables? Please Explain it. 2) Proof how the sampling distribution of the sample variances is the population variance. Mathematicaly proof it. it should be proofments.
Explain how limit has change moving from 1-variable functions to 2 or more variables. Why is...
Explain how limit has change moving from 1-variable functions to 2 or more variables. Why is showing lim(x,y)→(a,b ) f (x, y) exists more difficult in so many cases than showing limx→a f(x) exists? Explain why a two or three variable function: f’ (x, y) and f ‘ (x, y, z) are not functions we find in calculus.
Determine variables of interest, control variables, and explain how to decide which variables to include in...
Determine variables of interest, control variables, and explain how to decide which variables to include in a regression model
1.Outline the postulates and limitations of VSEPR theory. 2. Explain the application of this theory to...
1.Outline the postulates and limitations of VSEPR theory. 2. Explain the application of this theory to explain the shapes of the molecule namely SF4, NH3, SF6 and BCl3
1. Explain what inflation is and how it is measured. 2. Explain the two types of...
1. Explain what inflation is and how it is measured. 2. Explain the two types of inflation and describe the cost of inflation.
1. What guidelines are to be followed for naming variables? 2. What is the difference between...
1. What guidelines are to be followed for naming variables? 2. What is the difference between a primitive variable and a reference variable? 3. What is meant by the term "Conditionally Executed"? 4. Why is it good advice to indent all the statements inside a set of braces? 5. Describe the difference between pretest loops and posttest loops.
1. Compare and contrast microeconomics and macroeconomics. 2. How does the rest of the world effect...
1. Compare and contrast microeconomics and macroeconomics. 2. How does the rest of the world effect you and your business?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT