A network administrator needs to retrieve the operational state and configuration details of a specific router interface using a REST API without making any modifications to the device. Which HTTP verb should be used in the API request?
- GETCevap
- BPOST
- CPUT
- DDELETE
Cevap
The GET method is used to retrieve data from a REST API endpoint without altering device state.
In REST-based API architectures, the HTTP GET method maps directly to the Read operation of CRUD. It is a safe and idempotent request used strictly to fetch resource representations without modifying server state.
Adım Adım Çözüm
Anahtar Kavram
HTTP Verb to CRUD Mapping in REST APIs