更新 API

This commit is contained in:
ivamp 2023-12-12 20:00:07 +08:00
parent 56aff9312d
commit 76b399dd2d
5 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,7 @@
/* tslint:disable */
/* eslint-disable */
/**
* Leaf Document
* Swagger Example API
* This is a sample server celler server.
*
* The version of the OpenAPI document: 1.0
@ -810,11 +810,11 @@ export const LibrariesApiAxiosParamCreator = function (configuration?: Configura
/**
*
* @summary
* @param {number} name
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
librariesPost: async (name: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
librariesPost: async (name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists('librariesPost', 'name', name)
const localVarPath = `/libraries`;
@ -947,11 +947,11 @@ export const LibrariesApiFp = function(configuration?: Configuration) {
/**
*
* @summary
* @param {number} name
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async librariesPost(name: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelLibrary>> {
async librariesPost(name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelLibrary>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.librariesPost(name, options);
const index = configuration?.serverIndex ?? 0;
const operationBasePath = operationServerMap['LibrariesApi.librariesPost']?.[index]?.url;
@ -1006,11 +1006,11 @@ export const LibrariesApiFactory = function (configuration?: Configuration, base
/**
*
* @summary
* @param {number} name
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
librariesPost(name: number, options?: any): AxiosPromise<ModelLibrary> {
librariesPost(name: string, options?: any): AxiosPromise<ModelLibrary> {
return localVarFp.librariesPost(name, options).then((request) => request(axios, basePath));
},
/**
@ -1058,12 +1058,12 @@ export class LibrariesApi extends BaseAPI {
/**
*
* @summary
* @param {number} name
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LibrariesApi
*/
public librariesPost(name: number, options?: AxiosRequestConfig) {
public librariesPost(name: string, options?: AxiosRequestConfig) {
return LibrariesApiFp(this.configuration).librariesPost(name, options).then((request) => request(this.axios, this.basePath));
}

View File

@ -1,7 +1,7 @@
/* tslint:disable */
/* eslint-disable */
/**
* Leaf Document
* Swagger Example API
* This is a sample server celler server.
*
* The version of the OpenAPI document: 1.0
@ -19,7 +19,7 @@ import type { Configuration } from './configuration';
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import globalAxios from 'axios';
export const BASE_PATH = "/api".replace(/\/+$/, "");
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
/**
*

View File

@ -1,7 +1,7 @@
/* tslint:disable */
/* eslint-disable */
/**
* Leaf Document
* Swagger Example API
* This is a sample server celler server.
*
* The version of the OpenAPI document: 1.0

View File

@ -1,7 +1,7 @@
/* tslint:disable */
/* eslint-disable */
/**
* Leaf Document
* Swagger Example API
* This is a sample server celler server.
*
* The version of the OpenAPI document: 1.0

View File

@ -1,7 +1,7 @@
/* tslint:disable */
/* eslint-disable */
/**
* Leaf Document
* Swagger Example API
* This is a sample server celler server.
*
* The version of the OpenAPI document: 1.0