A network engineer is inspecting an API interaction log between a Python script and a Cisco DNA Center REST API controller. The log indicates that the script transmitted an HTTP request targeting an existing template resource URI using the HTTP PATCH verb. Which statement correctly describes the operational effect of this request on the API controller?
- It modifies only the specific attributes provided in the request payload while keeping all other existing resource fields intact.Cevap
- BIt creates a new template resource under the specified endpoint collection and assigns a new resource identifier.
- CIt performs a complete replacement of the target resource, overwriting unmentioned fields with default or empty values.
- DIt retrieves the operational data and configuration status of the target template without altering any server-side data.
Cevap
The HTTP PATCH request updates only the specific fields included in the payload while preserving unmentioned resource attributes.
In RESTful architecture, the HTTP PATCH method corresponds to the Update operation in CRUD, specifically designed for partial modifications. When a PATCH request is processed, the server updates only the key-value pairs defined in the request body, leaving all other attributes of the target resource unchanged.
Adım Adım Çözüm
Anahtar Kavram
REST HTTP Verbs to CRUD Mapping (PATCH vs PUT/POST)