@RestController
@RequestMapping(value="/api")
public class EntityWithServiceClassResource
extends java.lang.Object
Constructor and Description |
---|
EntityWithServiceClassResource(EntityWithServiceClassService entityWithServiceClassService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<EntityWithServiceClass> |
createEntityWithServiceClass(EntityWithServiceClass entityWithServiceClass)
POST /entity-with-service-classes : Create a new entityWithServiceClass.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
deleteEntityWithServiceClass(java.lang.Long id)
DELETE /entity-with-service-classes/:id : delete the "id" entityWithServiceClass.
|
java.util.List<EntityWithServiceClass> |
getAllEntityWithServiceClasses()
GET /entity-with-service-classes : get all the entityWithServiceClasses.
|
org.springframework.http.ResponseEntity<EntityWithServiceClass> |
getEntityWithServiceClass(java.lang.Long id)
GET /entity-with-service-classes/:id : get the "id" entityWithServiceClass.
|
org.springframework.http.ResponseEntity<EntityWithServiceClass> |
updateEntityWithServiceClass(EntityWithServiceClass entityWithServiceClass)
PUT /entity-with-service-classes : Updates an existing entityWithServiceClass.
|
public EntityWithServiceClassResource(EntityWithServiceClassService entityWithServiceClassService)
@PostMapping(value="/entity-with-service-classes") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceClass> createEntityWithServiceClass(@RequestBody EntityWithServiceClass entityWithServiceClass) throws java.net.URISyntaxException
entityWithServiceClass
- the entityWithServiceClass to createjava.net.URISyntaxException
- if the Location URI syntax is incorrect@PutMapping(value="/entity-with-service-classes") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceClass> updateEntityWithServiceClass(@RequestBody EntityWithServiceClass entityWithServiceClass) throws java.net.URISyntaxException
entityWithServiceClass
- the entityWithServiceClass to updatejava.net.URISyntaxException
- if the Location URI syntax is incorrect@GetMapping(value="/entity-with-service-classes") @Timed public java.util.List<EntityWithServiceClass> getAllEntityWithServiceClasses()
@GetMapping(value="/entity-with-service-classes/{id}") @Timed public org.springframework.http.ResponseEntity<EntityWithServiceClass> getEntityWithServiceClass(@PathVariable java.lang.Long id)
id
- the id of the entityWithServiceClass to retrieve@DeleteMapping(value="/entity-with-service-classes/{id}") @Timed public org.springframework.http.ResponseEntity<java.lang.Void> deleteEntityWithServiceClass(@PathVariable java.lang.Long id)
id
- the id of the entityWithServiceClass to deleteCopyright © 2017 Osgiliath. All rights reserved.