forked from pagopa/io-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_zendesk.yaml
49 lines (49 loc) · 1.19 KB
/
api_zendesk.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
swagger: "2.0"
info:
version: 1.0.0
title: Zendesk API
description: User authentication for zendesk
host: localhost
basePath: /api/backend/zendesk/v1/
schemes:
- https
paths:
"/jwt":
x-swagger-router-controller: ZendeskController
post:
operationId: getJwtForZendesk
summary: Get jwt with user's data for zendesk
description: Returns jwt with user's data for zendesk backend.
parameters:
- in: formData
name: user_token
type: string
responses:
"200":
description: Found.
schema:
$ref: "#/definitions/ZendeskToken"
examples:
application/json:
jwt: "a.jwt.token"
expires_in: 1200
"401":
description: Token null or expired.
"500":
description: There was an error in retrieving the user data.
definitions:
ZendeskToken:
title: Zendesk support token
description: A Support Token response to authenticate to Zendesk
type: object
properties:
jwt:
type: string
required:
- jwt
responses: {}
parameters: {}
consumes:
- application/x-www-form-urlencoded
produces:
- application/json