Checkpoint: adding docs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
6311ecee92
commit
b18f9cd50e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user