Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //test
- mvc.perform(get("/v1/bus-positions")
- .accept(MediaType.APPLICATION_JSON))
- .andDo(print()) .andExpect(status().isOk());
- //BusPredictionController
- @ApiOperation("Returns all actual bus positions")
- @GetMapping("/bus-positions")
- //@Secured("ROLE_app-user")
- public List<Journey> getJourneys (){
- return busPredictionService.getJourneys();
- }
- //busPredictionService
- @Override
- public List<Journey> getJourneys ()
- {
- journeyControllerApi.getApiClient().setBasePath("http://localhost:8081/timetableservice");
- return journeyControllerApi.getJourneysByIdsUsingGET("1");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement