{
"message": "hello, world!"
}
Authorization: Bearer XXXXXXXXXX
{
"id": 1,
"user_id": "test",
"created_at": "2024-01-01T00:00:00.000000Z",
"updated_at": "2024-01-01T00:00:00.000000Z"
}
{
"user_id": "test",
"password": "password"
}
{
"token": "XXXXXXXXXX"
}
{
"user_id": "test",
"password": "password"
}
{
"token": "XXXXXXXXXX"
}
Authorization: Bearer XXXXXXXXXX
{
"id": 1,
"code": "82d76e1c-1df2-4e0d-a4a2-a89ce6d70791",
"title": "ccc",
"sender_id": 1,
"holder_id": 1,
"state": "IN_PROGRESS",
"created_at": "2024-08-24T17:27:32.000000Z",
"updated_at": "2024-08-24T17:27:32.000000Z"
}
POST /api/envelopes/verify
Authorization: Bearer XXXXXXXXXX
{
"exist_envelope": true,
"envelope_id": 1
}
Authorization: Bearer XXXXXXXXXX
{
"code": "0d518795-a026-4a89-8bf2-d2e16c1b6cd0"
}
{
"id": 1,
"code": "0d518795-a026-4a89-8bf2-d2e16c1b6cd0",
"title": "test",
"sender_id": 1,
"holder_id": 1,
"state": "RECEIVED",
"created_at": "2024-08-24T17:26:13.000000Z",
"updated_at": "2024-08-24T18:08:12.000000Z",
"messages": [
{
"id": 1,
"envelope_id": 1,
"content": "がんばれ",
"writer_id": 1,
"writer_name": "ヒデアキ",
"created_at": null,
"updated_at": null
}
...
]
}
Authorization: Bearer XXXXXXXXXX
{
"envelope_id": 1,
"content": "がんばれ",
"writer_name": "ヒデアキ"
}
{
"id": 1,
"envelope_id": 1,
"content": "がんばれ",
"writer_id": 1,
"writer_name": "ヒデアキ",
"created_at": "2024-08-24T18:27:42.000000Z",
"updated_at": "2024-08-24T18:27:42.000000Z",
}