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
Restapivalidnewstudent

Restapivalidnewstudent

Last edited by Eladio Blanco López Jul 29, 2015
Page history

<< Student

Crear estudiante

Operación

POST /stu

Petición

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

  • name (string): Nombre del estudiante
  • surname (string): Apellidos del estudiante
  • gender (char): Género. F (female) o M (male)
  • pic (string): Ruta a imagen de perfil (opcional)
  • country(string): Código de 2 caracteres del país (opcional)
  • lang (string): Idioma preferido (Ejemplo: es-es)
  • birthdate (date): Fecha de nacimiento
  • idOff (int): Id del gabinete

Ejemplo de petición:

POST /stu

{ 
    "name": "Juan",
    "surname": "Pérez",
    "birthdate": "2002-11-20",
    "gender": "M",
    "country": "Es",
    "notes": "Prueba de notas del estudiante",
    "lang": "es-es"
}

Respuesta

Se devuelve un objeto con el estudiante creado.

Ejemplo de respuesta:

{
    "student": {
        "name": "Juan",
        "surname": "Pérez",
        "birthdate": "2002-11-20T00:00:00.000Z",
        "gender": "M",
        "country": "Es",
        "notes": "Prueba de notas del estudiante",
        "lang": "es-es",
       "attributes": {
          "categories": "on",
          "input_feedback": {
              "vibration": true,
              "click": false,
              "read": false,
              "highlight": false
           },
          "input_selection": "click",
          "pictogram_size": "normal",
          "tts_engine": "IVONA Text-to-Speech HQ",
          "tts_voice": "child",
          "picto_select": "enlarge",
          "legend": "no",
          "animation": "yes",
          "tts_options": { "phrase": false },
          "picto_background": "#0000ff",
          "phrase_background": "#ff0000",
          "legendsize":"50"
        },
        "id": 83
    }
}
  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.