REST API Flashcards

(1 cards)

1
Q

What is the difference between API and REST API?

A

API: Any interface to interact between software

REST API: Web API following REST principles.
1. Uses standard HTTP methods: GET, POST, PUT, DELETE
2. Stateless communication (each request is independent)
3. Uses URLs (endpoints) to represent resources
4. Supports multiple formats (JSON is most common)
5. Emphasizes a uniform interface, e.g. GET /users/123, POST /users

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