Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 authored May 24, 2022
1 parent 16485f9 commit 9b71410
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ It should be noted that Postman Requests stored in docs folder
}
```

![Result of running create station](https://github.com/Wissance/WeatherControl/blob/master/docs/create_station_example.png)

We got a Operation result response:
```json
{
Expand Down Expand Up @@ -78,11 +80,14 @@ Body and response are the same as at Create operation:
"latitude": "56°49'36\"N"
}
```
![Result of running update station](https://github.com/Wissance/WeatherControl/blob/master/docs/update_station_example.png)

3. There are two get operations:

3.1 to get one by id `GET http://localhost:8058/api/station/1`
3.2 to get collection with paging `GET http://localhost:8058/api/station/?page=1&size=10`
* 3.1 to get one by id `GET http://localhost:8058/api/station/1`
* 3.2 to get collection with paging `GET http://localhost:8058/api/station/?page=1&size=10`

![Result of running get stations](https://github.com/Wissance/WeatherControl/blob/master/docs/get_stations_with_paging.png)

4. To delete station with id 1 use endpoint `DELETE http://localhost:8058/api/station/1`

Expand Down Expand Up @@ -121,13 +126,16 @@ We got following result in ouptup:
}
```

![Result of running create measurements](https://github.com/Wissance/WeatherControl/blob/master/docs/create_measurements.png)

2. Update measurements: one or any number of weather parameters could be changed using
`PUT http://localhost:8058/api/measurements/1` with same body and result as at create measurements operation.

![Result of running update measurements](https://github.com/Wissance/WeatherControl/blob/master/docs/update_measurements.png)

3. There are two get operations:

3. There are two get operations:

3.1 to get one by id `GET http://localhost:8058/api/measurements/1`
3.2 to get collection with paging `GET http://localhost:8058/api/measurements/?page=1&size=10`
* 3.1 to get one by id `GET http://localhost:8058/api/measurements/1`
* 3.2 to get collection with paging `GET http://localhost:8058/api/measurements/?page=1&size=10`

4. To delete measurements with id 1 use endpoint `DELETE http://localhost:8058/api/measurements/1`
4. To delete measurements with id 1 use endpoint `DELETE http://localhost:8058/api/measurements/1`

0 comments on commit 9b71410

Please sign in to comment.