Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow-up solvedac/unofficial-documentation #23

Merged
merged 1 commit into from
Oct 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions dist/apis/ProblemApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import { InlineResponse2001, InlineResponse2002, TaggedProblem } from '../models
export interface GetProblemByIdRequest {
problemId: number;
}
export interface GetProblemByIdArrayRequest {
problemIds: number;
}
/**
*
*/
Expand All @@ -38,6 +41,16 @@ export declare class ProblemApi extends runtime.BaseAPI {
* ID로 문제 가져오기
*/
getProblemById(requestParameters: GetProblemByIdRequest, initOverrides?: RequestInit): Promise<TaggedProblem>;
/**
* 해당하는 ID의 문제 목록을 가져옵니다.
* ID로 문제 목록 가져오기
*/
getProblemByIdArrayRaw(requestParameters: GetProblemByIdArrayRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<TaggedProblem>>>;
/**
* 해당하는 ID의 문제 목록을 가져옵니다.
* ID로 문제 목록 가져오기
*/
getProblemByIdArray(requestParameters: GetProblemByIdArrayRequest, initOverrides?: RequestInit): Promise<Array<TaggedProblem>>;
/**
* 문제 개수를 문제 수준별로 가져옵니다.
* 수준별 문제 수 가져오기
Expand Down
29 changes: 29 additions & 0 deletions dist/apis/ProblemApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,35 @@ export class ProblemApi extends runtime.BaseAPI {
const response = await this.getProblemByIdRaw(requestParameters, initOverrides);
return await response.value();
}
/**
* 해당하는 ID의 문제 목록을 가져옵니다.
* ID로 문제 목록 가져오기
*/
async getProblemByIdArrayRaw(requestParameters, initOverrides) {
if (requestParameters.problemIds === null || requestParameters.problemIds === undefined) {
throw new runtime.RequiredError('problemIds', 'Required parameter requestParameters.problemIds was null or undefined when calling getProblemByIdArray.');
}
const queryParameters = {};
if (requestParameters.problemIds !== undefined) {
queryParameters['problemIds'] = requestParameters.problemIds;
}
const headerParameters = {};
const response = await this.request({
path: `/problem/lookup`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response);
}
/**
* 해당하는 ID의 문제 목록을 가져옵니다.
* ID로 문제 목록 가져오기
*/
async getProblemByIdArray(requestParameters, initOverrides) {
const response = await this.getProblemByIdArrayRaw(requestParameters, initOverrides);
return await response.value();
}
/**
* 문제 개수를 문제 수준별로 가져옵니다.
* 수준별 문제 수 가져오기
Expand Down
1 change: 1 addition & 0 deletions dist/apis/mod.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export * from './AccountApi.js';
export * from './DefaultApi.js';
export * from './OtherApi.js';
export * from './ProblemApi.js';
export * from './RankingApi.js';
export * from './SearchApi.js';
export * from './UserApi.js';
1 change: 1 addition & 0 deletions dist/apis/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export * from './AccountApi.js';
export * from './DefaultApi.js';
export * from './OtherApi.js';
export * from './ProblemApi.js';
export * from './RankingApi.js';
export * from './SearchApi.js';
export * from './UserApi.js';
Loading