feat: TemperaturesController

This commit is contained in:
Piotr Dec 2024-07-16 21:57:52 +02:00
parent 2a3bfb3a5b
commit b34f5b3301
Signed by: stawros
GPG key ID: F89F27AD8F881A91
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,20 @@
package eu.ztsh.lfr.web;
import eu.ztsh.lfr.model.Entry;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/api/temperatures")
public class TemperaturesController {
@GetMapping("/{city}")
public List<Entry> getTemperatures(@PathVariable String city) {
throw new UnsupportedOperationException("Not supported yet.");
}
}