| Request : JSON | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| text | Email de usuari | |
| password | text | Password del usuari hasheada a SHA256 |
| Response : JSON | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| status | text | OK o KO dependiendo de si el login ha sido correcto o no |
| statusData | text | en caso de OK será el token con el user_id y la caducidad dentro, en caso de KO será el mensaje de error con el motivo |
| statusMatricula | int | 0 si no se han puesto los documentos necesarios para el perfil, 1 si los documentos están pendientes de verificación, y 2 cuando la matrícula ya se ha completado |
| boolWizard | boolean | true si ya ha configurado su perfil con el wizard y false si todavía no lo ha hecho |
| Request : JSON | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| token | text | Token de usuario |
| Response : JSON | ||
|---|---|---|
| GET /get/grade | ||
| Param | Values | Description |
| Se devuelve un array de JSON que contiene los perfiles de la base de datos y dentro otro array con sus respectivos requisitos. | ||
| Response : JSON | ||
|---|---|---|
| GET /get/grade | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request (url query) | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| token | text | Token del usuario |
| carreerCode | text | Codigo del ciclo |
| Response : JSON | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| Se devuelve un objeto JSON de grado entero, igual que el de base de datos. | ||
| Response : JSON | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request : JSON(Array) | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| documentsProfile | JSON Object | Se debe informar de un objeto JSON de perfil entero, igual que el de base de datos. |
| overwrite | text | Permite sobreescribir en caso de que ya exista un perfil con el mismo nombre. Debe ser "true" o "false" en texto plano |
| Response : JSON | ||
|---|---|---|
| POST /insert/documentsProfile | ||
| Param | Values | Description |
| insertCount | integer | Numero de inserciones |
| Response : JSON | ||
|---|---|---|
| POST /insert/documentsProfile | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| token | text | Token de usuario |
| Response : JSON | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| name | text | Nombre del usuario |
| firstSurname | text | Primer apellido del usuario |
| secondSurname | text | Segundo apellido del usuario |
| DNI | text | DNI del usuario |
| birthplace | text | Lugar de nacimiento del usuario |
| birthday | text | Fecha de nacimiento del usuario |
| address | text | Dirección del usuario |
| city | text | Ciudad del usuario |
| postal_code | text | Código postal del usuario |
| phone_number | text | Número de telefono del usuario |
| emergency_number | text | Número de telefono de emergéncia del usuario |
| tutor_1 | text | Primer tutor del usuario |
| tutor_2 | text | Segundo tutor del usuario |
| Response : JSON | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| token | text | Token de usuario |
| Response : Text | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| imageRightsText | text | Texto de los derechos de imagen |
| Response : text | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request : text | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| imageRightsTest | Text | Texto de los derechos que ha aceptado el usuario |
| Response | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| Response : JSON | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| token | text | Token de usuario |
| Response : JSON(Array) | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| documentRequirements | JSON Object | Objeto JSON de los requisitos de documentos |
| Response : text | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| token | text | Token de usuario |
| Response : JSON(Array) | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| ufList | JSON | Array de las UFs seleccionadas por el usuario a la hora de matricularse(Almacenado en el user) |
| Response : text | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request : JSON(Array) | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| ufList | JSON | Array de las UFs seleccionadas por el usuario a la hora de matricularse(Almacenado en el user) |
| Response | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| Response : JSON | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request : FORM DATA | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| token | Text | Token del alumno |
| file | archivo | Fichero que se sube en base 64 |
| Response : JSON | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| ok | text | contiene "Fichero subido correctamente" |
| Response : JSON | ||
|---|---|---|
| POST | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request : GET | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| Text | Email del alumno | |
| profileName | text | Nombre del perfil |
| documentName | text | Nombre del documento |
| Response : JSON | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| filePath | text | contiene la ruta del fichero (incluye el nombre y extension) |
| data | text | Fichero en string base64 |
| Response : JSON | ||
|---|---|---|
| GET | ||
| Param | Values | Description |
| error | text | Motivo del error |
| Request : POST | ||
|---|---|---|
| POST /update/validateFile | ||
| Param | Values | Description |
| Text | Email del alumno | |
| profileName | text | Nombre del perfil |
| documentName | text | Nombre del documento |
| Response : JSON | ||
|---|---|---|
| POST /update/validateFile | ||
| Param | Values | Description |
| ok | text | contiene "fichero validado correctamente" |
| Response : JSON | ||
|---|---|---|
| POST /update/validateFile | ||
| Param | Values | Description |
| error | text | Motivo del error |