Update DeviceController.java
This commit is contained in:
parent
83db076e2d
commit
450b1393b2
1 changed files with 6 additions and 6 deletions
|
@ -3,17 +3,17 @@ package com.sap.tamagotchi.controller;
|
|||
import java.util.Collection;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
|
||||
import com.sap.tamagotchi.model.Device;
|
||||
import com.sap.tamagotchi.publisher.PublisherService;
|
||||
import com.sap.tamagotchi.service.TamagotchiService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.sap.tamagotchi.model.Device;
|
||||
import com.sap.tamagotchi.service.TamagotchiService;
|
||||
|
||||
@RestController
|
||||
public class DeviceController {
|
||||
|
||||
private static final String template = "Hello, %s!";
|
||||
private static final String template = "Hello !!!!!, %s!";
|
||||
private final AtomicLong counter = new AtomicLong();
|
||||
private final TamagotchiService tamagotchiService;
|
||||
|
||||
|
@ -31,8 +31,8 @@ public class DeviceController {
|
|||
public Collection<Device> getDevices() {
|
||||
return tamagotchiService.getDevices();
|
||||
}
|
||||
//TODO postmapping create
|
||||
//request payload
|
||||
// TODO postmapping create
|
||||
// request payload
|
||||
// owner String
|
||||
// color
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue