SHARE
TWEET

Untitled

a guest Jun 19th, 2019 1,326 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. localhost:8080/system/users/register
  2. {
  3.     "email":"formit@op.pl",
  4.     "name":"imie",
  5.     "password":"elo",
  6.     "phone": "tinky@number"
  7. }
  8.  
  9. http://localhost:8080/system/users?email=formi3@op.pl GET get user by mail
  10.  
  11. http://localhost:8080/system/ads-user?email=formi3@op.pl GET ads by user
  12.  
  13. http://localhost:8080/system/ads/ POST add ad to user
  14. {
  15.     "login": "cos@cosop.pl",
  16.     "password": "pbkdf2_sha256$150000$I1iCyY7nuC20$sDodZGYyELf6nq9YXT1ltl2IuLqdzlzKIsNX6VW0jHSs=",
  17.     "AD": {
  18.         "title": "wegweg",
  19.         "phone": "6666666",
  20.         "description": "wegweg",
  21.         "category": "ELECTRONICS",
  22.         "personality": "COMPANY",
  23.         "price": 22,
  24.         "entry_date": "2019-06-02T21:32:52.960909",
  25.         "bump_date": "2019-06-02T21:32:52.960919",
  26.         "short_description": "wegweg",
  27.         "featured": false,
  28.         "photos": {
  29.             "miniature_path": "ad:miniature.jpg",
  30.             "files_path": [
  31.                 "ad:FCI1.jpg",
  32.                 "ad:picture2.jpg",
  33.                 "ad:picture5.jpg"
  34.             ]
  35.         }
  36.     }
  37. }
  38.  
  39. http://localhost:8080/system/ads-page?page=0&size=5 paging GET
  40.  
  41. http://localhost:8080/system/users/update POST UPDATE USER
  42. {
  43.     "login": "formi3@op.pl",
  44.     "password": "elo",
  45.     "UPDATE": {
  46.         "name": "nowe imie",
  47.         "phone": "69696969"
  48.     }
  49. }
  50.  
  51. localhost:8080/system/ads-user/ POST UPDATE AD BY USER
  52. {
  53.     "login": "formi3@op.pl",
  54.     "password": "elo",
  55.     "AD_UPDATE_DTO": {
  56.         "ad_server_id": "1",
  57.         "content_ad": {
  58.             "title": "big title665",
  59.             "phone": "609595959",
  60.             "featured": true,
  61.             "description": "simple_desc",
  62.             "price": 12,
  63.             "personality": "COMPANY",
  64.             "category": "KEYS",
  65.             "photos": {
  66.                 "miniature_path": "ad:miniature.jpg",
  67.                 "files_path": [
  68.                     "ad:picture6.jpg",
  69.                     "ad:picture2.jpg",
  70.                     "ad:picture5.jpg"
  71.                 ]
  72.             },
  73.             "entry_date": "2019-05-27",
  74.             "bump_date": "2019-05-27",
  75.             "short_description": "short_desc"
  76.         }
  77.     }
  78. }
  79. http://localhost:8080/system/ads-remove/ POST delete ad
  80. {
  81.     "login": "admin-email@op.pl",
  82.     "password": "password",
  83.     "server_ad_id": 2
  84. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top