test.http 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ### test -1 words
  2. GET http://127.0.0.1:8000/text/word?amount=-1
  3. ### test -1 setences
  4. GET http://127.0.0.1:8000/text/sentence?amount=-1
  5. ### test -1 paragraphs
  6. GET http://127.0.0.1:8000/text/paragraph?amount=-1
  7. ### test word
  8. GET http://127.0.0.1:8000/text/word
  9. ### test setence
  10. GET http://127.0.0.1:8000/text/sentence
  11. ### test paragraph
  12. GET http://127.0.0.1:8000/text/paragraph
  13. ### test 10 words
  14. GET http://127.0.0.1:8000/text/word?amount=10
  15. ### test 5 setences
  16. GET http://127.0.0.1:8000/text/sentence?amount=5
  17. ### test 3 paragraphs
  18. GET http://127.0.0.1:8000/text/paragraph?amount=3
  19. ### test 0 words
  20. GET http://127.0.0.1:8000/text/word?amount=0
  21. ### test 0 setences
  22. GET http://127.0.0.1:8000/text/sentence?amount=0
  23. ### test 0 paragraphs
  24. GET http://127.0.0.1:8000/text/paragraph?amount=0
  25. ### test 101 words
  26. GET http://127.0.0.1:8000/text/word?amount=101
  27. ### test 101 setences
  28. GET http://127.0.0.1:8000/text/sentence?amount=101
  29. ### test 101 paragraphs
  30. GET http://127.0.0.1:8000/text/paragraph?amount=101
  31. ### register
  32. POST http://127.0.0.1:8000/jwt/register
  33. Content-Type: application/json
  34. {
  35. "username": "ilfey",
  36. "email": "ilfey.global@example.com",
  37. "password": "QWEasd123"
  38. }
  39. ### login
  40. POST http://127.0.0.1:8000/jwt/login
  41. Content-Type: application/json
  42. {
  43. "username": "ilfey",
  44. "password": "QWEasd123"
  45. }
  46. ### private word
  47. POST http://127.0.0.1:8000/private/text/word
  48. Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NjkyOTgyNDYuNTk5NjIxLCJpYXQiOjE2NjkyMTE4NDYuNTk5NjIxLCJ1c2VybmFtZSI6ImlsZmV5In0.J-fqy78OtdFqH-xQ1I4a0ST8CZ00qjpGAvr457dR8MQ