- Method: POST
- URL:
http://localhost:8000/registerUser
- Headers:
Content-Type: application/json
- Body:
{ "Name": "John Doe", "Mail": "john.doe@example.com", "Password": "password123", "Role": 1 }
- Method: POST
- URL:
http://localhost:8000/deleteUser
- Headers:
Content-Type: application/json
- Body:
{ "UserID": 1 }
- Method: POST
- URL:
http://localhost:8000/editUser
- Headers:
Content-Type: application/json
- Body:
{ "UserID": 1, "Name": "John Doe Updated", "Mail": "john.doe.updated@example.com", "Password": "newpassword123", "Role": 1 }
- Method: POST
- URL:
http://localhost:8000/login
- Headers:
Content-Type: application/json
- Body:
{ "Mail": "john.doe@example.com", "Password": "password123" }
- Method: POST
- URL:
http://localhost:8000/createPost
- Headers:
Content-Type: application/json
- Body:
{ "AuthorID": 1, "Texto": "This is a new post", "MediaType": "text", "MediaURL": "", "Caption": "", "Likes": [], "Comentarios": [] }
- Method: GET
- URL:
http://localhost:8000/post/{post_id}
- Headers: None
- Body: None
- Method: POST
- URL:
http://localhost:8000/likePost
- Headers:
Content-Type: application/json
- Body:
{ "PostID": "60d5ec49f8d2f8b4b8f8b8f8", "UserID": 1 }
- Method: POST
- URL:
http://localhost:8000/commentPost
- Headers:
Content-Type: application/json
- Body:
{ "PostID": "60d5ec49f8d2f8b4b8f8b8f8", "UserID": 1, "Texto": "This is a comment", "Likes": [] }
- Method: POST
- URL:
http://localhost:8000/createDestino
- Headers:
Content-Type: application/json
- Body:
{ "Pais": "Estados Unidos", "Destino": "Hawaii", "Link al destino": "https://www.gohawaii.com/islands/oahu/regions/honolulu", "Descripcion": "Sitio turistico en estados unidos ideal para unas vacaciones tropicales", "Likes": [], "Comentarios": [], "Rating": 9.3 }
- Method: POST
- URL:
http://localhost:8000/commentDestino
- Headers:
Content-Type: application/json
- Body:
{ "DestinoID": "60d5ec49f8d2f8b4b8f8b8f8", "UserID": 1, "Texto": "This is a comment", "Likes": [] }
- Method: POST
- URL:
http://localhost:8000/likeDestino
- Headers:
Content-Type: application/json
- Body:
{ "DestinoID": "60d5ec49f8d2f8b4b8f8b8f8", "UserID": 1 }
- Method: POST
- URL:
http://localhost:8000/likeComment
- Headers:
Content-Type: application/json
- Body:
{ "PostID": "60d5ec49f8d2f8b4b8f8b8f8", "CommentID": "60d5ec49f8d2f8b4b8f8b8f9", "UserID": 1 }
- Method: POST
- URL:
http://localhost:8000/createBucketList
- Headers:
Content-Type: application/json
- Body:
{ "UserID": 1, "Nombre": "My Bucket List", "Destinos": ["60d5ec49f8d2f8b4b8f8b8f8"] }
- Method: POST
- URL:
http://localhost:8000/followBucketList
- Headers:
Content-Type: application/json
- Body:
{ "UserID": 1, "BucketListID": "60d5ec49f8d2f8b4b8f8b8f8" }
- Method: POST
- URL:
http://localhost:8000/createTrip
- Headers:
Content-Type: application/json
- Body:
{ "UserID": 1, "DestinoID": "60d5ec49f8d2f8b4b8f8b8f8", "FechaInicio": "2023-01-01", "FechaFin": "2023-01-10", "Descripcion": "Trip to Hawaii" }