RESTful API Flashcards

1
Q

Für was steht REST

A

REpresentational State Transfer

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

Für was steht JSON

A

JavaScript Object Notation

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

Welche API Requests gibt es?

A

POST Request (Create)
GET Request (Read)
PUT/PATCH Request (Update)
DELETE Request (Delete)

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

Was ist ein HTTP Status Code?

A

Der Status Code teilt mit, was falsch (oder korrekt) ist ohne das Text zurückgegeben werden muss.

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

Was ist der Statuscode für OK?

A

200 (Request accepted)

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

Was ist der Statuscode für Created?

A

201 (resource created)

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

Was ist der Statuscode für Accepted?

A

202 (accepted but not processesed, maybe in the queue)

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

Was ist der Statuscode für endpoint Moved Permanently?

A

301 (permanently changed)

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

Was ist der Statuscode für Found?

A

302 (temporarily moved)

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

Was ist der Statuscode für Bad Request?

A

400 (Malformed, something is wrong)

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

Was ist der Statuscode für Unauthorized?

A

401 (not allowed to be here)

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

Was ist der Statuscode für Method Not Allowed?

A

405 (wrong HTTP Methode, Endpoint maybe only accept GET)

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

Was ist der Statuscode für Forbidden?

A

403 (no permissions)

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

Was ist der Statuscode für Not Found?

A

404 (ther’s nothing here)

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

Was ist der Statuscode für Internal Server Error?

A

500 (Server is not working)

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

Für was ist ein API Key?

A

Password to access the API.