-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathapi.http
More file actions
46 lines (36 loc) · 1.2 KB
/
api.http
File metadata and controls
46 lines (36 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@lat=56.638372
@lon=47.892991
@token=d4c9eea0d00fb43230b479793d6aa78f
### Запрос текущей погоды
GET https://api.openweathermap.org/data/2.5/weather?lat={{lat}}&lon={{lon}}&appid={{token}}&lang=ru&units=metric
### Запрос погоды за 5 дней https://openweathermap.org/forecast5
GET https://api.openweathermap.org/data/2.5/forecast?q=Йошкар-Ола&appid={{token}}&lang=ru&units=metric
### Запрос погоды за 5 дней https://openweathermap.org/forecast5
GET https://api.openweathermap.org/data/2.5/forecast?lat={{lat}}&lon={{lon}}&appid={{token}}&lang=ru&units=metric&mode=xml
###
GET http://localhost:8080/
Authorization: Basic admin:password
###
GET http://localhost:8080/product/150
###
POST http://localhost:8080/product
Content-Type: application/json
{
"Title": "post title",
"ProductTypeId": 141,
"ArticleNumber": "1234",
"MinCostForAgent": 100.50
}
###
GET http://localhost:8080/test/1/2?pageNum=10
###
PUT http://localhost:8080/product/1227
Content-Type: application/json
{
"Title": "post title",
"ProductTypeId": 141,
"ArticleNumber": "1234",
"MinCostForAgent": 100.50
}
###
DELETE http://localhost:8080/product/232