Update DeviceController.java

This commit is contained in:
Steinwagner 2019-12-10 16:16:03 +01:00
parent 83db076e2d
commit 450b1393b2

View file

@ -3,17 +3,17 @@ package com.sap.tamagotchi.controller;
import java.util.Collection; import java.util.Collection;
import java.util.concurrent.atomic.AtomicLong; 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.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.sap.tamagotchi.model.Device;
import com.sap.tamagotchi.service.TamagotchiService;
@RestController @RestController
public class DeviceController { 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 AtomicLong counter = new AtomicLong();
private final TamagotchiService tamagotchiService; private final TamagotchiService tamagotchiService;
@ -31,8 +31,8 @@ public class DeviceController {
public Collection<Device> getDevices() { public Collection<Device> getDevices() {
return tamagotchiService.getDevices(); return tamagotchiService.getDevices();
} }
//TODO postmapping create // TODO postmapping create
//request payload // request payload
// owner String // owner String
// color // color
} }