A network administrator is designing an automation script that interacts with a REST-based API on a Cisco network controller. Which two statements accurately describe the behavior and characteristics of HTTP verbs in this REST API implementation? (Select two.)
- HTTP POST operations create new resources under a target collection and are non-idempotent.Cevap
- BHTTP GET operations modify device parameters by transmitting configuration payloads in the request body.
- HTTP PUT operations completely replace an existing resource state or create a resource at a specific URI, making them idempotent.Cevap
- DHTTP PATCH operations are designated as safe, read-only requests that return existing resource configurations.
Cevap
The correct statements are that HTTP POST operations create new resources under a target collection and are non-idempotent, and HTTP PUT operations completely replace an existing resource state or create a resource at a specific URI, making them idempotent.
HTTP POST corresponds to creating resources in CRUD operations and is non-idempotent because duplicate calls produce multiple entities. HTTP PUT completely replaces a resource state or creates it at a designated URI, making it idempotent because repeating the request leaves the server in the identical state.
Adım Adım Çözüm
Anahtar Kavram
RESTful API HTTP Verbs, CRUD Operations, and Idempotency