- Server name: swiper-server.herokuapp.com:80
- Host: heroku
Insert user to DB, if exist update user
- URL: clientapi_v1/add_user
- Method: POST
- Type: JSON
- Data: {“user_name”: type.str, “user_id” : type.str, “user_email”: type.str, "user_first_name: type.str, "user_last_name: type.str, "user_gender": type.str}
- Returns: {“output”: “success/failed”}
Get items from DB
- URL: clientapi_v1/get_items
- Method: POST
- Type: JSON
- Data: {“userID”: type.str, “maxPrice”: type.int, “page” : type.int}
- Returns: Array of item by page (10 per page)
Insert item ID to users “like items” DB (it will be saved only from 24 hours)
- URL: clientapi_v1/like_item
- Method: POST
- Type: JSON
- Data: {“userID”: type.str, “itemID” :type.str}
- Returns: {“output”: “success/failed”}
Get liked itemed from user “liked items” DB
- URL: clientapi_v1/get_liked_items
- Method: POST
- Type: JSON
- Data: {“userID”: type.str, “page”: type.int}
- Returns: Array of items by page (30 per page)
Remove item ID from user’s “like items” DB
- URL: clientapi_v1/delete_liked_item
- Method: POST
- Type: JSON
- Data: {“userID”: type.str, “itemID”: type.str}
- Returns: {“output”: “success/failed”}