// TODO switch package name(s) to match your demo setup: // package org.contextmapper.generated.referencemanagementcontext.web.api; package io.microservices.demo.referencemanagement.web.api; import io.microservices.demo.referencemanagement.web.api.model.InlineResponse200; import io.microservices.demo.referencemanagement.web.api.model.PaperItemDTO; import io.microservices.demo.referencemanagement.web.api.model.PaperItemKey; import io.swagger.annotations.*; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.context.request.NativeWebRequest; import org.springframework.web.multipart.MultipartFile; import java.util.List; import java.util.Map; import java.util.Optional; import com.google.common.collect.Lists; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; @Service public class PaperArchiveFacadeImpl implements PaperArchiveFacadeApiDelegate { @Override public ResponseEntity convertToMarkdownForWebsite(PaperItemKey paperItemKey) { InlineResponse200 ilr200 = new InlineResponse200(); ilr200.setAnonymous1(paperItemKey.getId()); return new ResponseEntity(ilr200, HttpStatus.OK); } @Override public ResponseEntity createPaperItem(PaperItemDTO createPaperItemParameter) { PaperItemDTO paperItemDTO = new PaperItemDTO(); paperItemDTO.setTitle(createPaperItemParameter.getTitle()); paperItemDTO.setAuthors(createPaperItemParameter.getAuthors()); paperItemDTO.setVenue(createPaperItemParameter.getVenue()); return new ResponseEntity<>(paperItemDTO, HttpStatus.OK); } @Override public ResponseEntity> lookupPapersFromAuthor(String parameter1) { List fakeList = Lists.newLinkedList(); PaperItemDTO paperItemDTO = new PaperItemDTO(); paperItemDTO.setTitle("Fake Title"); paperItemDTO.setAuthors("Fake Author"); paperItemDTO.setVenue("Fake Venue"); fakeList.add(paperItemDTO); return new ResponseEntity<>(fakeList, HttpStatus.OK); } }