Zeiterfassung v2 /api/v2/:principal_slug/business/rapport/works/:id

Überblick

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

/api/v2/:principal_slug/business/rapport/works/:id

Parameter

Query Parameter

Schlüssel
id Pflicht

Business::Rapport::Work ID

principal_slug Pflicht

Backend::Principal Slug / ID

Beispiel Rückgabe

{
  "data" : {
    "id"                   : "5822dd0e56820b24f49cfa5f",
    "label"                : "Anpassung der Berechtigungen",
    "description"          : "",
    "date"                 : "2016-11-09",
    "duration_in_hours"    : 0.38333333333333336,
    "start_time"           : "2016-11-09T09:00:00.000+01:00",
    "end_time"             : "2016-11-09T09:23:00.000+01:00",
    "duration"             : 1380,
    "internal_description" : "",
    "charging"             : {
      "id"    : "5444fba0726f727320220100",
      "key"   : "charchable",
      "label" : "Verrechenbar",
      "color" : "#26C281"
    },
    "client"               : {
      "id"                     : "55de1a856f72695dd4010000",
      "_type"                  : "Business::Partner::Client::BusinessClient",
      "name"                   : "Noser Engineering AG",
      "backend_application_id" : null,
      "foreign_id"             : null
    },
    "project"              : {
      "id"              : "581855f356820b0e6754e19d",
      "label"           : "B2B: Günther Audio Systems AG Calculation (November 2016)",
      "number"          : 292,
      "abbreviation"    : "NOSE_2016_292",
      "date"            : "2016-11-01",
      "due_date"        : "2016-11-01",
      "type"            : "Business::Project::AtCost",
      "type_translated" : "Projekt nach Aufwand"
    },
    "task"                 : null,
    "employee"             : {
      "id"           : "560a5ea66f726964b3000000",
      "abbreviation" : "ple",
      "firstname"    : "Patrick",
      "lastname"     : "Lehmann",
      "email"        : "lehmann@squibble.me"
    },
    "employment"           : {
      "id"                           : "1234567890000",
      "job_title"                    : "",
      "percentage"                   : 100,
      "expected_daily_working_hours" : 8.5,
      "valid_from"                   : "2018-01-01",
      "valid_till"                   : null
    },
    "intangible_good"      : {
      "id"             : "55e6dcfc6f726918c6000000",
      "article_number" : "noser-entwicklung",
      "label"          : "Noser Engineering AG: Entwicklung",
      "resource_class" : "Business::Product::IntangibleGood"
    },
    "price"                : {"id" : "5822dd0e56820b24f49cfa61","value" : 49.68},
    "accounting_year"      : {"id" : "5640f7df93e2e504f700008f","code" : "2016","label" : "2016"},
    "period"               : {
      "id"    : "5640f7df93e2e504f700009a",
      "code"  : "2016-11",
      "label" : "November 2016"
    }
  },
  "meta" : {
    "resource_class" : "Business::Rapport::Work",
    "id"             : "5822dd0e56820b24f49cfa5f",
    "to"             : {
      "string" : "Anpassung der Berechtigungen",
      "param"  : "5822dd0e56820b24f49cfa5f"
    },
    "created_at"     : "2016-11-09T09:23:42.641+01:00",
    "updated_at"     : "2016-11-09T09:23:42.641+01:00",
    "principal"      : {"id" : "53db7cb4993a7aefa50001e1","to_param" : "squibble"},
    "can"            : {"update" : false,"destroy" : false}
  }
}