diff --git a/src/main/java/io/redlink/more/data/controller/CalendarApiV1Controller.java b/src/main/java/io/redlink/more/data/controller/CalendarApiV1Controller.java deleted file mode 100644 index 94c4820..0000000 --- a/src/main/java/io/redlink/more/data/controller/CalendarApiV1Controller.java +++ /dev/null @@ -1,28 +0,0 @@ -package io.redlink.more.data.controller; - -import io.redlink.more.data.api.app.v1.webservices.CalendarApi; -import io.redlink.more.data.service.CalendarService; -import org.springframework.http.MediaType; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Controller -@RestController -@RequestMapping(value = "/api/v1", produces = MediaType.APPLICATION_JSON_VALUE) -public class CalendarApiV1Controller implements CalendarApi { - - private final CalendarService calendarService; - - public CalendarApiV1Controller(CalendarService calendarService) { - this.calendarService = calendarService; - } - - @Override - public ResponseEntity getStudyCalendar(Long studyId) { - return ResponseEntity.of( - this.calendarService.getICalendarString(studyId) - ); - } -} diff --git a/src/main/resources/openapi/ExternalAPI.yaml b/src/main/resources/openapi/ExternalAPI.yaml index edd8049..b063dfa 100644 --- a/src/main/resources/openapi/ExternalAPI.yaml +++ b/src/main/resources/openapi/ExternalAPI.yaml @@ -97,24 +97,6 @@ paths: '401': $ref: '#/components/responses/UnauthorizedApiKey' - /calendar/studies/{studyId}/calendar.ics: - get: - tags: - - calendar - description: Get study calendar for study as iCal - operationId: getStudyCalendar - parameters: - - $ref: '#/components/parameters/StudyId' - responses: - '200': - description: Successfully returned study calendar - content: - text/calendar: - schema: - type: string - '404': - description: Not found - components: schemas: EndpointDataBulk: