79551628

Date: 2025-04-02 21:52:04
Score: 0.5
Natty:
Report link

My code below on how to pass the apiKey when using the typescript-fetch OpenAPI generator.

The apiKey is sent in the header.

Make sure your YAML openAPI configuration is set correctly.

import { Configuration, DefaultApi } from "mySDK";
const sdk = new DefaultApi(
    new Configuration({
        apiKey: "myApiKey",
    }),
);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user3524762