forked from VirgilSecurity/demo-twilio-backend-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.http
54 lines (41 loc) · 831 Bytes
/
spec.http
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
POST http://localhost:3000/signup HTTP/1.1
Content-Type: application/json
{
"rawCard": RawSignedModel.exportAsJson()
}
Response:
{
"virgil_card": cardManager.exportCardAsJson(card);
}
###
POST http://localhost:3000/signin HTTP/1.1
Content-Type: application/json
{
"identity": "string"
}
Response:
{
"virgil_card": cardManager.exportCardAsJson(card);
}
###
POST http://localhost:3000/get-virgil-jwt/ HTTP/1.1
Authorization: Bearer cardId.unixTimestamp.signature(cardId.unixTimestamp)
Content-Type: application/json
{
"identity": "test"
}
Response:
{
"token": "string"
}
###
POST http://localhost:3000/get-twilio-jwt/ HTTP/1.1
Authorization: Bearer cardId.unixTimestamp.signature(cardId.unixTimestamp)
Content-Type: application/json
{
"identity": "test"
}
Response:
{
"token": "string"
}