api.http 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @lat=56.638372
  2. @lon=47.892991
  3. @token=d4c9eea0d00fb43230b479793d6aa78f
  4. ### Запрос текущей погоды
  5. GET https://api.openweathermap.org/data/2.5/weather?lat={{lat}}&lon={{lon}}&appid={{token}}&lang=ru&units=metric
  6. ### Запрос погоды за 5 дней https://openweathermap.org/forecast5
  7. GET https://api.openweathermap.org/data/2.5/forecast?q=Йошкар-Ола&appid={{token}}&lang=ru&units=metric
  8. ### Запрос погоды за 5 дней https://openweathermap.org/forecast5
  9. GET https://api.openweathermap.org/data/2.5/forecast?lat={{lat}}&lon={{lon}}&appid={{token}}&lang=ru&units=metric&mode=xml
  10. ###
  11. GET http://localhost:8080/product?pageNum=15
  12. Authorization: Basic admin:passwor
  13. ###
  14. GET http://localhost:8080/product/150
  15. ###
  16. POST http://localhost:8080/product
  17. Content-Type: application/json
  18. {
  19. "Title": "post title",
  20. "ProductTypeId": 141,
  21. "ArticleNumber": "1234",
  22. "MinCostForAgent": 100.50
  23. }
  24. ###
  25. GET http://localhost:8080/test/1/2?pageNum=10
  26. ###
  27. PUT http://localhost:8080/product/1227
  28. Content-Type: application/json
  29. {
  30. "Title": "post title",
  31. "ProductTypeId": 141,
  32. "ArticleNumber": "1234",
  33. "MinCostForAgent": 100.50
  34. }
  35. ###
  36. DELETE http://localhost:8080/product/232