diff --git a/frontend/src/api/api/schedule.service.ts b/frontend/src/api/api/schedule.service.ts index d686ebc..66a5dc3 100644 --- a/frontend/src/api/api/schedule.service.ts +++ b/frontend/src/api/api/schedule.service.ts @@ -324,12 +324,12 @@ export class ScheduleService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public schedulesScheduleIDBasicPost(scheduleID: number, basicScheduleFieldInfo?: BasicScheduleFieldInfo, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public schedulesScheduleIDBasicPost(scheduleID: number, basicScheduleFieldInfo?: BasicScheduleFieldInfo, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public schedulesScheduleIDBasicPost(scheduleID: number, basicScheduleFieldInfo?: BasicScheduleFieldInfo, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public schedulesScheduleIDBasicPost(scheduleID: number, basicScheduleFieldInfo?: BasicScheduleFieldInfo, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public schedulesScheduleIDPost(scheduleID: number, basicScheduleFieldInfo?: BasicScheduleFieldInfo, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; + public schedulesScheduleIDPost(scheduleID: number, basicScheduleFieldInfo?: BasicScheduleFieldInfo, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public schedulesScheduleIDPost(scheduleID: number, basicScheduleFieldInfo?: BasicScheduleFieldInfo, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; + public schedulesScheduleIDPost(scheduleID: number, basicScheduleFieldInfo?: BasicScheduleFieldInfo, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { if (scheduleID === null || scheduleID === undefined) { - throw new Error('Required parameter scheduleID was null or undefined when calling schedulesScheduleIDBasicPost.'); + throw new Error('Required parameter scheduleID was null or undefined when calling schedulesScheduleIDPost.'); } let localVarHeaders = this.defaultHeaders; @@ -373,7 +373,7 @@ export class ScheduleService { responseType_ = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/schedules/${encodeURIComponent(String(scheduleID))}/basic`, + return this.httpClient.post(`${this.configuration.basePath}/schedules/${encodeURIComponent(String(scheduleID))}`, basicScheduleFieldInfo, { context: localVarHttpContext, diff --git a/frontend/src/app/schedules/basic-scheduler/basic-scheduler.component.ts b/frontend/src/app/schedules/basic-scheduler/basic-scheduler.component.ts index 791eb1f..cfe4d0d 100644 --- a/frontend/src/app/schedules/basic-scheduler/basic-scheduler.component.ts +++ b/frontend/src/app/schedules/basic-scheduler/basic-scheduler.component.ts @@ -43,7 +43,7 @@ export class BasicSchedulerComponent implements OnChanges{ } }) } else { - this.scheduleService.schedulesScheduleIDBasicPost(this.scheduleEntityInfo!.scheduleID, { + this.scheduleService.schedulesScheduleIDPost(this.scheduleEntityInfo!.scheduleID, { scheduleDate: this.dateCtrl.value }).subscribe({ next: resp => { diff --git a/openapi.yaml b/openapi.yaml index f0e2f4b..f481fad 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1351,7 +1351,7 @@ paths: schema: type: object $ref: "#/components/schemas/SimpleStatusResponse" - /schedules/{scheduleID}/basic: + /schedules/{scheduleID}: post: security: - API_TOKEN: [] @@ -1379,7 +1379,7 @@ paths: application/json: schema: type: object - $ref: '#/components/schemas/SimpleStatusResponse' + $ref: '#/components/schemas/ScheduleInfo' 403: description: No permission content: