-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 61 Add api for meteo service * 61 Update TODO * 61 MeteoSlaveController
- Loading branch information
1 parent
1c5a2de
commit ef3e19c
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/main/java/agroscience/fields/v2/controllers/MeteoSlaveController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package agroscience.fields.v2.controllers; | ||
|
||
import generated.agroscience.fields.api.MeteoSlaveApi; | ||
import generated.agroscience.fields.api.model.MeteoResponse; | ||
import java.util.List; | ||
import java.util.UUID; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class MeteoSlaveController implements MeteoSlaveApi { | ||
|
||
@Override | ||
public List<MeteoResponse> coordinatesForMeteoService() { | ||
return List.of(); | ||
// TODO Отдавать координаты всех полей, нужно использовать JdbcTemplate. В сервисе можно использовать MeteoResponse | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters