-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathpersonio-auth-api.yaml
95 lines (94 loc) · 2.69 KB
/
personio-auth-api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
openapi: 3.0.0
info:
version: '1.0'
title: Authentication
description: 'Personio Authentication API'
x-readme:
samples-languages:
- "curl"
- "python"
- "ruby"
- "java"
- "php"
- "node"
servers:
- url: https://api.personio.de/v1
paths:
/auth:
post:
description: 'Request Authentication Token'
tags:
- Auth
requestBody:
content:
application/json:
schema:
type: object
properties:
client_id:
type: string
description: API Client id
client_secret:
type: string
description: API Client secret
required:
- client_id
- client_secret
application/x-www-form-urlencoded:
schema:
type: object
properties:
client_id:
type: string
description: API Client id
client_secret:
type: string
description: API Client secret
required:
- client_id
- client_secret
responses:
'200':
description: 'Authentication token response'
content:
application/json:
schema:
$ref: '#/components/schemas/AuthenticationTokenResponse'
examples:
response:
value:
success: true
data:
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vYXBpLmRldi5wZXJzb25pby5kZTozMDAwMS92MS9hdXRoIiwiaWF0IjoxNDg5MDkxMzA2LCJleHAiOjE0ODkxNzc3MDYsIm5iZiI6MTQ4OTA5MTMwNiwianRpIjoiZmU1ZjkxOGY2MDZjOWI4OGMwMzM0ZmJkZjkyYzkwMzgiLCJzdWIiOiJPR014TVdRd1kySmxZbVF6Tm1RNVpqQmxOell6WmpsaSJ9.QZZCdlDjmL-LYdoDx2XLUfhwTdcjDgm9h4t-6JoACiM"
expires_in: 86400
scope: employees:read absences:read
components:
schemas:
Response:
title: Default response object
type: object
properties:
success:
type: boolean
data:
type: object
required:
- success
- data
AuthenticationTokenResponse:
title: Request Authentication Token response
allOf:
- $ref: '#/components/schemas/Response'
- type: object
properties:
data:
type: object
required:
- token
properties:
token:
type: string
expires_in:
type: number
scope:
type: string