Skip to content

Ron-404/UniWheelsBackend

Repository files navigation

UniWheelsBackend

Deploy CircleCI

Execute Project

git clone https://github.com/Ron-404/UniWheelsBackend.git
gradle spring-boot:run

Class Model

Class Model

API's

Authentication

  1. 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":[]
}
  1. POST /auth/login (Login)
{
    "username":"orlandoagk",
    "password":"prueba",
    "token":""
}

Uniwheels APIs

External APIs

  1. Cars and model -> This is used to feed the add car function information
     [{"id":36,"brand":"Acura"},
     {"id":29,"brand":"Alfa Romeo"},
     {"id":569,"brand":"Alkanes"},
     {"id":400,"brand":"Artic Cat"},
     {"id":565,"brand":"Aston Martin"}]
[{"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"}}]

Sockets

  • /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)