Skip to content

Commit 2b09a8a

Browse files
authored
Merge pull request personio#199 from ehkasper/master
NO-PAPI: adds missing example for EmployeesResponse
2 parents fbd1713 + 75934d7 commit 2b09a8a

1 file changed

Lines changed: 247 additions & 0 deletions

File tree

personio-personnel-data-api-oa3.yaml

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,253 @@ paths:
205205
application/json:
206206
schema:
207207
$ref: "#/components/schemas/EmployeesResponse"
208+
examples:
209+
response:
210+
value:
211+
success: true
212+
metadata:
213+
total_elements: 2
214+
current_page: 0
215+
total_pages: 3
216+
offset: 0
217+
limit: 20
218+
data:
219+
- type: Employee
220+
attributes:
221+
id:
222+
label: ID
223+
value: 1
224+
type: integer
225+
universal_id: id
226+
first_name:
227+
label: First name
228+
value: Alexander
229+
type: standard
230+
universal_id: first_name
231+
last_name:
232+
label: Last name
233+
value: Bergmann
234+
type: standard
235+
universal_id: last_name
236+
preferred_name:
237+
label: Name (preferred)
238+
value: Alexander Bergmann
239+
type: standard
240+
universal_id: preferred_name
241+
email:
242+
label: Email
243+
value: alexander.bergmann@demo.email
244+
type: standard
245+
universal_id: email
246+
gender:
247+
label: Gender
248+
value: male
249+
type: standard
250+
universal_id: gender
251+
status:
252+
label: Status
253+
value: active
254+
type: standard
255+
universal_id: status
256+
position:
257+
label: Position
258+
value: CTO
259+
type: standard
260+
universal_id: position
261+
supervisor:
262+
label: Supervisor
263+
value:
264+
type: Employee
265+
attributes:
266+
id:
267+
label: ID
268+
value: 2
269+
type: integer
270+
universal_id: id
271+
type: standard
272+
universal_id: supervisor
273+
employment_type:
274+
label: Employment type
275+
value: external
276+
type: standard
277+
universal_id: employment_type
278+
weekly_working_hours:
279+
label: Weekly hours
280+
value: '40'
281+
type: standard
282+
universal_id: weekly_working_hours
283+
hire_date:
284+
label: Hire date
285+
value: 2014-11-09T00:00:00+01:00
286+
type: date
287+
universal_id: hire_date
288+
contract_end_date:
289+
label: Contract ends
290+
value: null
291+
type: date
292+
universal_id: contract_end_date
293+
termination_date:
294+
label: Termination date
295+
value: null
296+
type: date
297+
universal_id: termination_date
298+
termination_type:
299+
label: Termination type
300+
value: null
301+
type: standard
302+
universal_id: termination_type
303+
termination_reason:
304+
label: Termination reason
305+
value: null
306+
type: standard
307+
universal_id: termination_reason
308+
probation_period_end:
309+
label: Probation period end
310+
value: null
311+
type: date
312+
universal_id: probation_period_end
313+
created_at:
314+
label: created_at
315+
value: '2017-05-23T09:49:03+02:00'
316+
type: date
317+
universal_id: created_at
318+
last_modified_at:
319+
label: Last modified
320+
value: '2020-11-18T17:33:55+01:00'
321+
type: date
322+
universal_id: last_modified_at
323+
subcompany:
324+
label: Subcompany
325+
value:
326+
type: Subcompany
327+
attributes:
328+
id: 7033
329+
name: CS Demo GmbH
330+
type: standard
331+
universal_id: subcompany
332+
office:
333+
label: Office
334+
value:
335+
type: Office
336+
attributes:
337+
id: 131014
338+
name: Munich
339+
type: standard
340+
universal_id: office
341+
department:
342+
label: Department
343+
value:
344+
type: Department
345+
attributes:
346+
id: 281521
347+
name: Customer Support
348+
type: standard
349+
universal_id: department
350+
cost_centers:
351+
label: Cost center
352+
value:
353+
- type: CostCenter
354+
attributes:
355+
id: 82957
356+
name: Cost center 1
357+
percentage: 100
358+
type: standard
359+
universal_id: cost_centers
360+
holiday_calendar:
361+
label: Public holidays
362+
value:
363+
type: HolidayCalendar
364+
attributes:
365+
id: 2
366+
name: Deutschland (Bayern) Feiertage
367+
country: DE
368+
state: Bayern
369+
type: standard
370+
universal_id: holiday_calendar
371+
absence_entitlement:
372+
label: Absence entitlement
373+
value:
374+
- type: TimeOffType
375+
attributes:
376+
id: 113437
377+
name: Paid vacation
378+
category: paid_vacation
379+
entitlement: 24
380+
type: standard
381+
universal_id: absence_entitlement
382+
work_schedule:
383+
label: Work schedule
384+
value:
385+
type: WorkSchedule
386+
attributes:
387+
id: 97188
388+
name: Full-time, 40 hours without time tracking, (mon,tue,wed,thu,fri)
389+
valid_from:
390+
monday: '08:00'
391+
tuesday: '08:00'
392+
wednesday: '08:00'
393+
thursday: '08:00'
394+
friday: '08:00'
395+
saturday: '00:00'
396+
sunday: '00:00'
397+
type: standard
398+
universal_id: work_schedule
399+
fix_salary:
400+
label: Fix salary
401+
value: 3000
402+
type: decimal
403+
universal_id: fix_salary
404+
currency: EUR
405+
fix_salary_interval:
406+
label: Salary interval
407+
value: monthly
408+
type: standard
409+
universal_id: fix_salary_interval
410+
hourly_salary:
411+
label: Hourly salary
412+
value: 0
413+
type: decimal
414+
universal_id: hourly_salary
415+
currency: EUR
416+
vacation_day_balance:
417+
label: Vacation day balance
418+
value: 2
419+
type: decimal
420+
universal_id: vacation_day_balance
421+
last_working_day:
422+
label: Last day of work
423+
value:
424+
type: date
425+
universal_id: last_working_day
426+
profile_picture:
427+
label: Profile Picture
428+
value: https://api.personio.de/v1/company/employees/1132888/profile-picture
429+
type: standard
430+
universal_id: profile_picture
431+
team:
432+
label: Team
433+
value:
434+
type: Team
435+
attributes:
436+
id: 59026
437+
name: T_X
438+
type: standard
439+
universal_id: team
440+
dynamic_24407:
441+
label: Titel
442+
value: Dr
443+
universal_id: null
444+
type: standard
445+
dynamic_21827:
446+
label: IBAN
447+
value: DE98 8989 9898 0000 8989 00
448+
universal_id: iban
449+
type: standard
450+
dynamic_33400:
451+
label: Anniversary Date
452+
value: 2021-01-01
453+
universal_id: null
454+
type: date
208455
post:
209456
security:
210457
- BearerAuth: []

0 commit comments

Comments
 (0)