git clone https://github.com/Ron-404/UniWheelsBackend.git
gradle spring-boot:run
- POST /auth/addUser (Register)
{
"username": "orlandoagk",
"nombreCompleto":"Orlando Antonio Gelves Kerguelen",
"direccionResidencia":"Calle 87",
"password":"prueba",
"email":"[email protected]",
"universidad":"ECI",
"numero":"3267895438",
"carros":[],
"viajesConductor":[],
"viajesPasajero":[]
}
- POST /auth/login (Login)
{
"username":"orlandoagk",
"password":"prueba",
"token":""
}
- Cars and model -> This is used to feed the add car function information
- Brands of cars - GET Endpoint
[{"id":36,"brand":"Acura"},
{"id":29,"brand":"Alfa Romeo"},
{"id":569,"brand":"Alkanes"},
{"id":400,"brand":"Artic Cat"},
{"id":565,"brand":"Aston Martin"}]
- Models of a Brand - GET Endpoint
[{"id":384,"model":"Serie 1",
"brand":{"id":17,"brand":"BMW"},
"type":{"id":1,"type":"Car"}},
{"id":1548,"model":"GS",
"brand":{"id":17,"brand":"BMW"},
"type":{"id":2,"type":"Motor"}},
{"id":1640,"model":"Serie 3",
"brand":{"id":17,"brand":"BMW"},
"type":{"id":1,"type":"Car"}},
{"id":1649,"model":"Serie 5",
"brand":{"id":17,"brand":"BMW"},
"type":{"id":1,"type":"Car"}}]
/stompendpoint/solicitudPasajero.{usernameConductor}
SEND y SUSCRIBE (Send para pasajero y Suscribe para el conductor)- SEND (Enviar el siguiente JSON)
{ "username":usernamePasajero "direccion":direccionRecogida }
- SUSCRIBE (Recibe una arreglo de JSON con la info de los posibles pasajeros)