|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +/** |
| 4 | + * @solvedac/unofficial-documentation |
| 5 | + * 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation) **주의**: (2023/03/08~) CORS 문제로 인해 API는 사이트 내에서 호출할 수 없으므로 별도 도구를 이용해주십시오. ([#51](https://github.com/solvedac/unofficial-documentation/issues/51))  |
| 6 | + * |
| 7 | + * The version of the OpenAPI document: 3.2022.02+b1 |
| 8 | + |
| 9 | + * |
| 10 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 11 | + * https://openapi-generator.tech |
| 12 | + * Do not edit the class manually. |
| 13 | + */ |
| 14 | +import * as runtime from '../runtime.js'; |
| 15 | +/** |
| 16 | + * |
| 17 | + */ |
| 18 | +export class BackgroundApi extends runtime.BaseAPI { |
| 19 | + /** |
| 20 | + * 배경의 정보를 가져옵니다. |
| 21 | + * 배경 정보 가져오기 |
| 22 | + */ |
| 23 | + async getBackgroundRaw(requestParameters, initOverrides) { |
| 24 | + if (requestParameters.backgroundId === null || requestParameters.backgroundId === undefined) { |
| 25 | + throw new runtime.RequiredError('backgroundId', 'Required parameter requestParameters.backgroundId was null or undefined when calling getBackground.'); |
| 26 | + } |
| 27 | + const queryParameters = {}; |
| 28 | + if (requestParameters.backgroundId !== undefined) { |
| 29 | + queryParameters['backgroundId'] = requestParameters.backgroundId; |
| 30 | + } |
| 31 | + const headerParameters = {}; |
| 32 | + const response = await this.request({ |
| 33 | + path: `/background/show`, |
| 34 | + method: 'GET', |
| 35 | + headers: headerParameters, |
| 36 | + query: queryParameters, |
| 37 | + }, initOverrides); |
| 38 | + return new runtime.JSONApiResponse(response); |
| 39 | + } |
| 40 | + /** |
| 41 | + * 배경의 정보를 가져옵니다. |
| 42 | + * 배경 정보 가져오기 |
| 43 | + */ |
| 44 | + async getBackground(requestParameters, initOverrides) { |
| 45 | + const response = await this.getBackgroundRaw(requestParameters, initOverrides); |
| 46 | + return await response.value(); |
| 47 | + } |
| 48 | +} |
0 commit comments