Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 626 Bytes

USAGE.md

File metadata and controls

32 lines (27 loc) · 626 Bytes
import { Test } from "Test";
import { PetStatus } from "Test/dist/sdk/models/shared";

async function run() {
    const sdk = new Test({
        security: {
            petstoreAuth: "<YOUR_PETSTORE_AUTH_HERE>",
        },
    });

    const res = await sdk.pet.addPetForm({
        category: {
            id: 1,
            name: "Dogs",
        },
        id: 10,
        name: "doggie",
        photoUrls: ["<value>"],
        tags: [{}],
    });

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

run();