Advertisement
Sora952

Http resolve

May 17th, 2020
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. ### GET ipify.org (no parameter)
  2. GET https://api.ipify.org/
  3.  
  4. ### GET ipify.org (format as JSON)
  5. GET https://api.ipify.org/?format=json
  6.  
  7. ### GET image svg
  8. GET https://upload.wikimedia.org/wikipedia/commons/2/20/UnderCon_icon.svg
  9.  
  10. ### GET premiere page web
  11. GET https://www.w3.org/History/19921103-hypertext/hypertext/WWW/TheProject.html
  12.  
  13. ### GET info API wild
  14. GET https://http-practice.herokuapp.com/status
  15.  
  16. ### GET info API wild AVEC entête de requête
  17. GET https://http-practice.herokuapp.com/status
  18. Accept: application/json
  19.  
  20. ### GET info wilder api
  21. GET https://http-practice.herokuapp.com/wilders
  22.  
  23. ### GET info wilder api avec parametre
  24. GET https://http-practice.herokuapp.com/wilders?language=C%23&language=PHP
  25.  
  26. ### GET info wilder trop plein
  27. GET https://http-practice.herokuapp.com/wilders?page=99999999999999999
  28.  
  29. ### POST envoie en url encoded
  30. POST https://http-practice.herokuapp.com/wilders
  31. Content-Type: application/x-www-form-urlencoded
  32.  
  33. name=John%20Doe&language=C%23
  34.  
  35. ### POST envoie en json
  36. POST https://http-practice.herokuapp.com/wilders
  37. Content-Type: application/json
  38.  
  39. {
  40. "name": "Jane Smith",
  41. "language": "JavaScript"
  42. }
  43.  
  44. ### GET avec id
  45. GET https://http-practice.herokuapp.com/wilders/1854
  46.  
  47. ### GET avec id trop haut
  48. GET https://http-practice.herokuapp.com/wilders/9999999999
  49.  
  50. ### PUT pour mettre à jour
  51. PUT https://http-practice.herokuapp.com/wilders/1853
  52. Content-Type: application/json
  53.  
  54. {
  55. "name": "Jean sebastien de la mouhla",
  56. "language": "C#"
  57. }
  58.  
  59. ### DELETE
  60. DELETE https://http-practice.herokuapp.com/wilders/1854
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement