Skip to content

Commit

Permalink
Follow-up solvedac/unofficial-documentation (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: RanolP <[email protected]>
  • Loading branch information
github-actions[bot] and RanolP authored Oct 1, 2021
1 parent a10e10b commit 98bc74a
Show file tree
Hide file tree
Showing 6 changed files with 337 additions and 82 deletions.
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

0 comments on commit 98bc74a

Please sign in to comment.