mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
posprocessing hook for DRF
This commit is contained in:
70
vue3/src/openapi/models/AuthTokenRequest.ts
Normal file
70
vue3/src/openapi/models/AuthTokenRequest.ts
Normal file
@@ -0,0 +1,70 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthTokenRequest
|
||||
*/
|
||||
export interface AuthTokenRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthTokenRequest
|
||||
*/
|
||||
username: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthTokenRequest
|
||||
*/
|
||||
password: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the AuthTokenRequest interface.
|
||||
*/
|
||||
export function instanceOfAuthTokenRequest(value: object): boolean {
|
||||
if (!('username' in value)) return false;
|
||||
if (!('password' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function AuthTokenRequestFromJSON(json: any): AuthTokenRequest {
|
||||
return AuthTokenRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthTokenRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'username': json['username'],
|
||||
'password': json['password'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthTokenRequestToJSON(value?: AuthTokenRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'username': value['username'],
|
||||
'password': value['password'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user