generated from 2martens/template-service
Added operation to retrieve single agenda item
This commit is contained in:
@ -156,4 +156,14 @@ public class OParlController {
|
||||
log.info("invoked method /v1.1/meeting/{}", id);
|
||||
return service.getMeeting(id);
|
||||
}
|
||||
|
||||
@GetMapping("/agendaItem/{id}")
|
||||
@Operation(summary = "information about agenda item", description = "returns the requested agenda item")
|
||||
public AgendaItem agendaItem(
|
||||
@PathVariable
|
||||
@Parameter(description = "agendaItem ID", example = "0")
|
||||
String id) {
|
||||
log.info("invoked method /v1.1/agendaItem/{}", id);
|
||||
return service.getAgendaItem(id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -73,6 +73,10 @@ public class OParlService {
|
||||
.build();
|
||||
}
|
||||
|
||||
public AgendaItem getAgendaItem(String id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<Body> getBodies() {
|
||||
return List.of(exampleBody);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user