Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 388 Bytes

USAGE.md

File metadata and controls

21 lines (16 loc) · 388 Bytes
import { SwaggerPetstore } from "Swagger-Petstore";

async function run() {
    const sdk = new SwaggerPetstore();

    const res = await sdk.pets.createPets({
        id: 596804,
        name: "<value>",
    });

    if (res.statusCode == 200) {
        // handle response
    }
}

run();