mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-09 08:08:24 -05:00
no longer split schema in request/response
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -25,6 +25,7 @@ import {
|
||||
export interface ApiTokenAuthCreateRequest {
|
||||
username: string;
|
||||
password: string;
|
||||
token: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -49,6 +50,13 @@ export class ApiTokenAuthApi extends runtime.BaseAPI {
|
||||
);
|
||||
}
|
||||
|
||||
if (requestParameters['token'] == null) {
|
||||
throw new runtime.RequiredError(
|
||||
'token',
|
||||
'Required parameter "token" was null or undefined when calling apiTokenAuthCreate().'
|
||||
);
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
@@ -81,6 +89,10 @@ export class ApiTokenAuthApi extends runtime.BaseAPI {
|
||||
formParams.append('password', requestParameters['password'] as any);
|
||||
}
|
||||
|
||||
if (requestParameters['token'] != null) {
|
||||
formParams.append('token', requestParameters['token'] as any);
|
||||
}
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api-token-auth/`,
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user