Diese Hilfe bezieht sich auf die nicht mehr unterstützte untermStrich X (10) und X.1 (11).
Zur Hilfe für untermStrich X3 wechseln

Times

GET

Get time via ID [From version 5468]

/rest/times/time/5

  • Get for time ID 5
Example result
<?xml version="1.0" encoding="UTF-8"?>
<xml>
    <id>5</id>
    <project_id>11</project_id>
    <cost_centre_id>0</cost_centre_id>
    <area_id>12</area_id>
    <number>1.5</number>
    <type_id>6</type_id>
    <purpose>Test</purpose>
</xml>

POST/PUT

POST from 8026

Add a new time for social project [From version 5468]

Social projects (Sozialkostenprojekte) are those projects with the flag is_included_in_time_sheet active.

/rest/times/time

  • Add new
Example request body
staff_id=4&date=2012/06/12&project_id=11&area_id=12&number=2&time_to=14%3A00&time_from=12%3A00&purpose=Test
Example result
<?xml version="1.0" encoding="UTF-8"?>
<xml>
    <url>.../rest/times/time/5</url>
</xml>

Possible values

Field Description Valid Values German Name
staff_id Staff ID required,integer Person
date Date required,us_date Datum
project_id Project ID required,integer Projekt
cost_centre_id Cost centre ID integer Kostenstelle
area_id Area ID required,integer Bereich
number Number required,numeric,greater_than[-0.001] Anzahl der Stunden
factor Factor numeric,greater_than[-0.001] Faktor
time_from Time from us_time Zeit von
time_to Time to us_time Zeit bis
purpose Purpose Leistung
purpose_internal Purpose internal Intern

DELETE

Delete a time for social project time via ID [From version 6456]

/rest/times/time/5

  • Delete for time ID 5
Example result
<?xml version="1.0" encoding="UTF-8"?>
<xml>
    <item0>OK</item0>
</xml>

GET

Get times for a member of staff for today [From version 6456]

/rest/times/staff/4

  • Get for staff ID 4
Example result
<?xml version="1.0" encoding="UTF-8"?>
<xml>
    <item0 id="169" purpose="Test" number="2" project_id="6" date="2013-11-14 00:00:00" time_from="" time_to="" .../>
    <item1 id="170" purpose="" number="3.42" project_id="7" date="2013-11-14 00:00:00" ime_from="1900-01-10 12:00:00" time_to="1900-01-10 15:25:00"/ .../>
</xml>

Get times for a member of staff for a defined date [From version 6456]

/rest/times/staff/4/2011/1/1

  • Get for staff ID 4
  • Get for 2011/Jan/01
Same result as above
Melden Sie sich an, um einen Kommentar zu erstellen.