Able to recognize a REST endpoint (stateless/resource) Flashcards

1
Q

REST

A
  • REST stands for Representational State Transfer.
  • A REST endpoint is a URL or a collection of URLs that represent resources in a RESTful web service.
  • These endpoints are stateless, which means
    • that each request to an endpoint contains all the information needed to complete that request, and
    • the server does not keep track of any state or session information between requests.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

RESTful API

A
  • RESTful API (Application Programming Interface) is a type of web service (A web service is a software system that enables different applications to communicate with each other over the internet) that is designed to follow the principles and guidelines of REST.
  • REST is a set of guidelines and principles for building web-based applications, while a RESTful API is an implementation of those guidelines and principles.
  • A RESTful API follows the principles of REST, such as using HTTP verbs (like GET, POST, PUT, DELETE) to interact with resources and using URLs to uniquely identify each resource.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

C# REST endpint example

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Stateless

A

Stateless endpoints typically have URLs that

  • describe an action or operation on a resource, rather than
  • identifying a specific resource. For example:
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Resourceful

A

Resourceful endpoints, on the other hand, typically have URLs that

  • identify a specific resource using an ID, and use HTTP methods to perform actions on that resource. For example:
How well did you know this?
1
Not at all
2
3
4
5
Perfectly