fix: update the api reference from the OpenAPI spec in the /backend folder instead

This commit is contained in:
Emmanuel Oloyede
2023-10-26 04:35:14 +01:00
parent abfc69fc75
commit 01cbd4236d
3 changed files with 925 additions and 170 deletions
+4 -4
View File
@@ -17,7 +17,7 @@ const generateOpenAPISpec = async () => {
host: ["https://infisical.com"],
servers: [
{
url: "https://infisical.com",
url: "https://app.infisical.com",
description: "Production server",
},
{
@@ -111,7 +111,7 @@ const generateOpenAPISpec = async () => {
secretValueTag: "",
secretCommentCiphertext: "",
secretCommentIV: "",
secretCommentTag: "",
secretCommentTag: "",
},
UpdateSecret: {
id: "",
@@ -196,7 +196,7 @@ const generateOpenAPISpec = async () => {
secretKeyTag: "",
secretValueCiphertext: "",
secretValueIV: "",
secretValueTag: "",
secretValueTag: "",
},
ServiceTokenData: {
_id: "",
@@ -223,7 +223,7 @@ const generateOpenAPISpec = async () => {
const endpointsFiles = ["../src/index.ts"];
const spec = await swaggerAutogen(outputJSONFile, endpointsFiles, doc);
await fs.writeFile(outputYAMLFile, yaml.dump(spec.data));
}