Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

yotta / pictogram

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 60
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Restapivalidnewsupervisor

Restapivalidnewsupervisor

Last edited by Eladio Blanco López Jun 23, 2015
Page history

<< Supervisor

Crear supervisor

Operación

POST /sup

Petición

Se pasa un objeto JSON con los campos para crear el supervisor:

  • name (string): Nombre del supervisor
  • surname (string): Apellidos del supervisor
  • gender (char): Género. F (female) o M (male)
  • pic (string): Ruta a imagen de perfil (opcional)
  • address(string): Dirección del supervisor (opcional)
  • country(string): Código de 2 caracteres del país (opcional)
  • email (string): Email del supervisor
  • phone (string): Teléfono del supervisor (opcional)
  • lang (string): Idioma preferido (Ejemplo: ES)
  • tts_engine (string): Motor Text To Speech (opcional)
  • password (string): Contraseña del supervisor

Ejemplo de petición:

POST /sup

{
    "name": "Belén",
    "surname": "Pérez Vílchez",
    "gender": "F",
    "email": "belen.perez@autismojaen.es2",
    "lang": "es",
    "ttsEngine": "IVONA Text-to-Speech HQ",
    "password": "hnuT8j"
}

Respuesta

Se devuelve un objeto con el supervisor creado y el token asociado.

Ejemplo de respuesta:

{
    "user": {
        "name": "Belén",
        "surname": "Pérez Vílchez",
        "gender": "F",
        "email": "belen.perez@autismojaen.es",
        "lang": "es",
        "id": 44,
        "ttsEngine": "IVONA Text-to-Speech HQ"
    },
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.NDQ.ZoPDf_oPynqH-B9Yx9CAaMVeW-k__BteZmPiGDq4_Sc"
}
  Clone repository
  • 20170328_isabellemonfort
  • 20170328_luisballesteros
  • 20170328_luisperez
  • Apiaction
  • Apiadminvalid
  • Apiattribute
  • Apidevicevalid
  • Apienrolment
  • Apiinstructionresource
  • Apiinstructionvalid
  • Apilearningunitresource
  • Apimetamethodvalid
  • Apimethod
  • Apimethodresource
  • Apimethodvalid
More Pages
×

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.