REST API Design and Basics Flashcards

1
Q

REST

A

REpresentational State Transfer
- REST does not enforce any implementation
- High-level design guidelines
- Client-server designed pattern
- Stateless
- Requests made through simple HTTP

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

HTTP

A

Hyper Test Transfer Protocol - application layer protocol for transmitting hypermedia

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

REST APIs

A

An API is an application programming interface. Set of rules that allow programs to talk to each other.

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

HTTP Methods

A

GET, POST, PUT, DELETE

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

GET

A

Retrieve a resource

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

POST

A

Create a new resource

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

PUT

A

Update an existing resource

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

DELETE

A

Delete an existing resource

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

Proper HTTP Status Codes

A

Return appropriate HTTP status codes to indicate the success or failure of a request
- 200 OK for GET
- 201 Created for POST
- 204 No content for DELETE
- 400 Bad request for client errors
- 404 Not found
- 500 Internal server error

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

RESTful URLS

A

Use meaningful and hierarchical URLs

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