Package de.dlr.proseo.model.rest
Class MissionControllerDecorator
java.lang.Object
de.dlr.proseo.model.rest.MissionControllerDecorator
- All Implemented Interfaces:
MissionController
@RestController
@RequestMapping(value="/proseo/order-mgr/{version}/missions",
produces="application/json")
@Validated
public class MissionControllerDecorator
extends Object
implements MissionController
No description
(Generated with springmvc-raml-parser v.2.0.5)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<RestMission> createMission(@Valid RestMission restMission) Creates a new mission with the provided data.org.springframework.http.ResponseEntity<?> deleteMissionById(Long id, Boolean force, Boolean deleteProducts) Delete a mission by ID.org.springframework.http.ResponseEntity<RestMission> getMissionById(Long id) Retrieves the mission with the specified ID.org.springframework.http.ResponseEntity<List<RestMission>> getMissions(String mission) Retrieves a list of all missions or a mission with a specific code.org.springframework.http.ResponseEntity<RestMission> modifyMission(Long id, RestMission restMission) Updates the mission with the specified ID using the attribute values of the given JSON object.
-
Constructor Details
-
MissionControllerDecorator
public MissionControllerDecorator()
-
-
Method Details
-
getMissions
@RequestMapping(value="", method=GET) public org.springframework.http.ResponseEntity<List<RestMission>> getMissions(@RequestParam(required=false) String mission) Retrieves a list of all missions or a mission with a specific code.- Specified by:
getMissionsin interfaceMissionController
-
createMission
@RequestMapping(value="", method=POST) public org.springframework.http.ResponseEntity<RestMission> createMission(@Valid @RequestBody @Valid RestMission restMission) Creates a new mission with the provided data.- Specified by:
createMissionin interfaceMissionController
-
getMissionById
@RequestMapping(value="/{id}", method=GET) public org.springframework.http.ResponseEntity<RestMission> getMissionById(@PathVariable Long id) Retrieves the mission with the specified ID.- Specified by:
getMissionByIdin interfaceMissionController
-
deleteMissionById
@RequestMapping(value="/{id}", method=DELETE) public org.springframework.http.ResponseEntity<?> deleteMissionById(@PathVariable Long id, @RequestParam(required=false,defaultValue="false") Boolean force, @RequestParam(name="delete-products",required=false,defaultValue="false") Boolean deleteProducts) Delete a mission by ID.- Specified by:
deleteMissionByIdin interfaceMissionController
-
modifyMission
@RequestMapping(value="/{id}", method=PATCH) public org.springframework.http.ResponseEntity<RestMission> modifyMission(@PathVariable Long id, @RequestBody RestMission restMission) Updates the mission with the specified ID using the attribute values of the given JSON object.- Specified by:
modifyMissionin interfaceMissionController
-