Booker


El Booker (o Talent-Booker) es quién hace las propuestas de Booking.

Modelo Booker

{
    "id": 1,
    "email": "ernesto.smitham@example.org",
    "first_name": null,
    "last_name": null,
    "phone": null,
    "profile_photo_url": "https://www.gravatar.com/avatar/c82648bb55ae2039526b361d5cda88ef.jpg?d=wavatar&s=256",
    "born_at": null,
    "gender": null,
    "created_at": "2022-11-20T05:24:28.000000Z",
    "updated_at": "2022-11-30T23:35:48.000000Z",
    "deleted_at": null,
    "booker_role_id": null,
    "company_type_id": null,
    "company_name": null
}

Insertar Booker

URI Cabeceras
POST /bookers Guest

Carga útil

{
    "email": "ernesto.smitham@example.org",
    "first_name": null,
    "last_name": null,
    "phone": null,
    "born_at": null,
    "gender": null,
    "booker_role_id": null,
    "company_type_id": null,
    "company_name": null,
    "password": "MyStringValue",
    "links": {
        "facebook": "MyStringValue",
        "instagram": "MyStringValue",
        "twitter": "MyStringValue",
        "website": "MyStringValue"
    }
}

Atributos

  • email string obligatorio email max: 255 unique users's email
  • password string obligatorio min: 8
  • first_name string opcional nullable max: 255
  • last_name string opcional nullable max: 255
  • phone string opcional nullable max: 255
  • born_at string opcional nullable date lower than now
  • gender string opcional nullable "male" "female" "other" choice
  • booker_role_id integer opcional booker_roles's id exists
  • company_type_id integer opcional company_types's id exists
  • company_name string opcional nullable max: 64
  • links object opcional
    • facebook string opcional nullable url max: 255
    • instagram string opcional nullable url max: 255
    • twitter string opcional nullable url max: 255
    • website string opcional nullable url max: 255

Listar Booker

URI Cabeceras
GET /bookers Auth

Atributos

  • per_page integer opcional min: 1 max: 60
  • page integer opcional min: 1

Mostrar Booker

Mostrar Me Booker

URI Cabeceras
GET /bookers/me Auth

Mostrar Booker

URI Cabeceras
GET /bookers/{booker} Auth

Actualizar Booker

URI Cabeceras
PATCH /bookers/{booker} Auth

Carga útil

{
    "email": "ernesto.smitham@example.org",
    "first_name": null,
    "last_name": null,
    "phone": null,
    "born_at": null,
    "gender": null,
    "booker_role_id": null,
    "company_type_id": null,
    "company_name": null,
    "links": {
        "facebook": "MyStringValue",
        "instagram": "MyStringValue",
        "twitter": "MyStringValue",
        "website": "MyStringValue"
    }
}

Atributos

  • email string opcional email max: 255
  • first_name string opcional nullable max: 255
  • last_name string opcional nullable max: 255
  • phone string opcional nullable max: 255
  • born_at string opcional nullable date lower than now
  • gender string opcional nullable "male" "female" "other" choice
  • booker_role_id integer opcional nullable booker_roles's id exists
  • company_type_id integer opcional nullable company_types's id exists
  • company_name string opcional nullable max: 64
  • links object opcional
    • facebook string opcional nullable url max: 255
    • instagram string opcional nullable url max: 255
    • twitter string opcional nullable url max: 255
    • website string opcional nullable url max: 255

Eliminar Booker

URI Cabeceras
DELETE /bookers/{booker} Auth

Restaurar Booker

URI Cabeceras
POST /bookers/{bookerId}/restore Auth

Acciones de Booker

Upload Profile Photo

URI Cabeceras
POST /bookers/{booker}/upload-profile-photo Auth

Atributos

  • image file opcional nullable image "jpeg" "png"

Enlaces de Booker