Mitarbeiter v2 /api/v2/:principal_slug/business/employees/:id

Überblick

Klasse / Datentyp
Mitarbeiter
Response Formats
JSON
API Version
v2
Öffentlich erreichbar
false
HTTP Methode
GET
Zuletzt aktualisiert

/api/v2/:principal_slug/business/employees/:id

Parameter

Query Parameter

Schlüssel
id Pflicht

Business::Employee ID

principal_slug Pflicht

Backend::Principal Slug / ID

Beispiel Rückgabe

{
  "data" : {
    "id"                             : "560a5ea66f726964b3000000",
    "firstname"                      : "Patrick",
    "lastname"                       : "Lehmann",
    "abbreviation"                   : "ple",
    "name"                           : "Lehmann Patrick",
    "email"                          : "lehmann@squibble.me",
    "mobile_phone_number"            : "XXXXXXX",
    "phone_number"                   : "",
    "address"                        : {
      "id"                            : "58276ea11f513a17b4fd05f9",
      "firstname"                     : "Patrick",
      "lastname"                      : "Lehmann",
      "company_name"                  : null,
      "location_name"                 : null,
      "latitude"                      : null,
      "longitude"                     : null,
      "street"                        : "XXXXXXX",
      "additional_street_information" : null,
      "zip_code"                      : "XXXXXXX",
      "town"                          : "XXXXXXX",
      "country"                       : "CH",
      "full_address"                  : null
    },
    "portrait"                       : "http://squibble.dev.squibble.me/upload/business/employee/53db7cb4993a7aefa50001e1/portraits/560a5ea66f726964b3000000/IMG_20131215_031210_Patrick_Lehmann_Peter_Hurley_Style_00041.jpg",
    "sex"                            : "male",
    "sex_translated"                 : "Mann",
    "position"                       : "Founder and Head of Engineering",
    "internal_description"           : "",
    "birthday"                       : "1989-08-20",
    "emergency_contact_name"         : "",
    "emergency_contact_phone_number" : "",
    "facebook"                       : "https://www.facebook.com/patrick.lehmann",
    "google_plus"                    : "",
    "twitter"                        : "ple1989",
    "linkedin"                       : "",
    "xing"                           : "",
    "skype"                          : "patricklehmann1989",
    "account"                        : {
      "id"     : "55fa6db96f726913e6020000",
      "_type"  : "Business::Account::Active::CashResource",
      "number" : "XXXXXXX",
      "label"  : "XXXXXXX"
    },
    "superior"                       : null,
    "subordinates"                   : [
      {
        "id"        : "560a5fce6f726964a7000000",
        "firstname" : "Max",
        "lastname"  : "Muster",
        "email"     : "max.muster@squibble.me"
      }
    ]
  },
  "meta" : {
    "resource_class" : "Business::Employee",
    "id"             : "560a5ea66f726964b3000000",
    "created_at"     : "2015-09-29T11:49:26.941+02:00",
    "updated_at"     : "2016-11-12T19:46:52.913+01:00",
    "principal"      : {"id" : "53db7cb4993a7aefa50001e1","to_param" : "squibble"}
  }
}