-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
54 lines (52 loc) · 1.76 KB
/
swagger.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
swagger: '2.0'
info:
title: UnificationEngine
description: Enable your products and software to communicate with people and things
version: "1.0.0"
host: apiv2.unificationengine.com
schemes:
- https
basePath: /v2
produces:
- application/json
paths:
/user/create:
post:
summary: Create user
description: |
This endpoint will create a <a href="https://developer.unificationengine.com/">UnificationEngine™</a> user for the developer’s app. This user is required for adding the connections like facebook, twitter etc.
The user should be created with the key and secret of the app. On successful creation of a user, a uri containing the access key and the secret for the user will be returned as response, which is required for all further api calls. The uri will be in the format “user://access_key:secret@”.
responses:
200:
description: Successful user creation
schema:
type: object
properties:
status:
type: string
info:
type: string
uri:
type: string
/user/list:
post:
summary: List users
description: |
This endpoint will list all the users created for the app. This api call should be authenticated with the key and secret of the app.
responses:
200:
description: A list of users
schema:
type: object
properties:
status:
type: string
info:
type: string
users:
type: array
items:
type: object
properties:
uri:
type: string