Checkpoint: adding docs

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-01-10 15:59:26 +01:00
parent 6311ecee92
commit b18f9cd50e
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -30,7 +30,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.Example;
import io.swagger.annotations.ExampleProperty;
@RestController
@CrossOrigin
@ -48,8 +52,11 @@ public class ExchangeController extends TokenBasedController{
private ExchangeService exchangeService;
@PostMapping("/exchange")
@ApiOperation(value = "Return all courses")
public ResponseEntity<String> createExchange(@RequestBody Map<String, Long> exchangeRequest)
@ApiOperation(value = "Creates exchange offer.")
public ResponseEntity<String> createExchange(
@ApiParam( value = "Json object that contains assignment to trade and desired group")
@RequestBody
Map<String, Long> exchangeRequest)
throws UserNotFoundException {
final User asker = this.getCurrentUser()