API Design Flashcards

1
Q

Is HTTP POST request idempotent?

A

No. It will create a new resource every time it’s executed.

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

Is HTTP PUT request idempotent?

A

Yes. PUT contains a final representation of the object. Hence, if it is created multiple times the final state will be the same.

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

Is HTTP DELETE request idempotent?

A

Yes. Issuing it multiple times to delete a resource with a given ID won’t impact the state.

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