A network automation engineer is developing a Python script to interact with a Cisco REST-based API controller. Which two statements accurately describe the characteristics of HTTP headers, verbs, or data formats in REST APIs? (Select two.)
- The Content-Type request header informs the API server about the data format contained within the HTTP request body.Cevap
- JSON data payloads support native data types including strings, numbers, booleans, key-value objects, and arrays.Cevap
- CThe Accept header specifies the data format of the payload currently being transmitted in the client's request body.
- DHTTP POST operations are inherently idempotent, ensuring multiple identical requests produce no additional server state changes.
Cevap
The statement that the Content-Type header informs the server of the request body format and the statement that JSON natively supports strings, numbers, booleans, objects, and arrays are both correct.
The Content-Type request header notifies the server of the data format (e.g., application/json) contained within the HTTP request body. Additionally, JSON natively supports data types such as strings, numbers, booleans, objects (dictionaries), and arrays (lists).
Adım Adım Çözüm
Anahtar Kavram
Characteristics of REST HTTP headers (Content-Type vs Accept), HTTP verb idempotency, and JSON data structures.
Tahmini Süre:1m 30s