backend/restservice/src/main/java/com/plannaplan/controllers/ExchangeController.java
Marcin Woźniak 6e65c26e3c
Checkpoint: szkielet
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-01-06 13:40:04 +01:00

28 lines
964 B
Java

package com.plannaplan.controllers;
import java.util.Map;
import com.plannaplan.App;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@RestController
@CrossOrigin
@RequestMapping("/api/" + App.API_VERSION + "/exchanges")
@Api(tags = { "Exchange" }, value = "Exchange", description = "Endpoint to exchange with accepted assignments.")
public class ExchangeController {
@PostMapping("/exchange")
@ApiOperation(value = "Return all courses")
public ResponseEntity<String> createExchange(@RequestBody Map<String, Object> exchangeRequest){
return null;
}
}