![]() ![]() Note: My second object item property are different compare to first object item properties. Kindly anyone tell me which is correct structure for defining the multiple array of objects in an array. Responses: 200: description: "successful operation" schema: $ref: "#/definitions/ClientId" 400: description: "Invalid ID supplied" 404: description: "User not found"įor some reason, second array not return and it thrown an error like duplicated mapping key I am using OpenAPI spec 2.0 and suspect that the arrays are not well supported in this version. name: "ids" in: "query" description: "ID of users to return" required: true type: "array" items: type: integer Download it, try it in the cloud, or request a demo. "application/json" operationId: getUserById Design, describe, & document your API on the first open source editor fully dedicated to OpenAPI-based APIs. Tags: - "pet" summary: "Find users by ID" description: "Returns a users" produces: ![]() ![]() The goal is to enable the service producer to update the service documentation in real time so that client (consumer) can get up-to-date information about the service structure (request/response, model. It specifies the format (URL, method, and representation) to describe REST web services. I am defining an API specification in swaggerhub. Swagger is a specification for documenting REST API.
0 Comments
Leave a Reply. |