400-007 · Question #422
The API of an SDN controller named CTL-A uses the HTTP POST method and the same URL for all resources. The JSON body of each messages used to get information for specific resources and operations…
The correct answer is A. CTL-B uses a RESTful API and CTL-A has an HTTP-base API. CTL-B uses HTTP CRUD methods (GET, POST, PUT, DELETE) and different URLs for each resource, which aligns with the core principles of RESTful APIs. RESTful APIs use a uniform interface with unique resource identifiers (URLs) and standard HTTP methods to manipulate CTL-A uses…
Question
The API of an SDN controller named CTL-A uses the HTTP POST method and the same URL for all resources. The JSON body of each messages used to get information for specific resources and operations. The API of a SDN controller named CTL-B uses HTTP CRUD methods and a uniform interface with different URLs for each resource. Which API type is used by each SDN controller?
Options
- ACTL-B uses a RESTful API and CTL-A has an HTTP-base API
- BCTL-A uses a RESTful API and CTL-B has an HTTP-bsed API
- CCTL-A and CTL-B have a RESTful API
- DCTL-A and CTL-B have a non-RESTful API
How the community answered
(56 responses)- A93% (52)
- B2% (1)
- C5% (3)
Explanation
CTL-B uses HTTP CRUD methods (GET, POST, PUT, DELETE) and different URLs for each resource, which aligns with the core principles of RESTful APIs. RESTful APIs use a uniform interface with unique resource identifiers (URLs) and standard HTTP methods to manipulate CTL-A uses only the HTTP POST method and the same URL for all operations, with the JSON body specifying the resource and operation. This is not RESTful because it does not use the uniform interface or HTTP methods to represent different actions on resources. Instead, it uses HTTP as a transport protocol for RPC-style calls or an HTTP-based API that is not RESTful.
Topics
Community Discussion
No community discussion yet for this question.