Swagger Generator
  1. clients
Swagger Generator
  • clients
    • Gets languages supported by the client generator
      GET
    • Returns options for a client library
      GET
    • Generates a client library
      POST
    • Downloads a pre-generated file
      GET
  • servers
    • Gets languages supported by the server generator
      GET
    • Returns options for a server framework
      GET
    • Generates a server library
      POST
  1. clients

Generates a client library

POST
/gen/clients/{language}
Accepts a GeneratorInput options map for spec location and generation options
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/gen/clients/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "authorizationValue": {
        "keyName": "string",
        "type": "string",
        "value": "string"
    },
    "options": {
        "property1": "string",
        "property2": "string"
    },
    "securityDefinition": {
        "description": "string",
        "type": "string"
    },
    "spec": {},
    "swaggerUrl": "http://petstore.swagger.io/v2/swagger.json"
}'
Response Response Example
{
    "code": "d40029be-eda6-4d62-b1ef-d05e2e91a72a",
    "link": "http://generator.swagger.io:80/api/gen/download/d40029be-eda6-4d62-b1ef-d05e2e91a72a"
}

Request

Path Params

Body Params application/json

Examples

Responses

🟢200successful operation
application/json
Body

Modified at 2022-09-11 22:30:38
Previous
Returns options for a client library
Next
Downloads a pre-generated file
Built with