-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth-pin.raml
47 lines (42 loc) · 931 Bytes
/
auth-pin.raml
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
#%RAML 1.0 Extension
title: Pin Authorization API
baseUri: hb://auth-pin
extends: auth-service-api/auth.raml
types:
CreatePin:
type: object
properties:
pin_id: string
time_to_live_seconds?: integer
pin_length?: integer
only_digits?: boolean
identity_keys: object
extra?: object
Pin:
type: object
properties:
pin: string
identity_keys: object
extra: object
attempts: integer
consumed: boolean
valid_until: # unix date-time in millis
type: number
format: int64
NewPin:
type: object
properties:
pin: string
pin_id: string
/pins:
description: |
Pins to authenticate and authorize requests.
post:
description: |
Create pin to use for the rest authorized requests.
body:
application/json: CreatePin
responses:
201:
body:
application/json: NewPin