Skip to content

Instantly share code, notes, and snippets.

@adiwids
Created May 13, 2020 17:33
Show Gist options
  • Save adiwids/74c2ff8d40eeed4ade831fd7d94a08f3 to your computer and use it in GitHub Desktop.
Save adiwids/74c2ff8d40eeed4ade831fd7d94a08f3 to your computer and use it in GitHub Desktop.
GET /ships/{id}.json
{
"ship": {
"id": 1,
...
"shippable": {
"spob": {
"id": 1,
...
}
},
"documents": {
// Tug&Barge
"tug": [ {...} ],
"barge": [ {...} ]
// SPOB, FC, SUV
"spob": [
{
"document_name": "international_tonnage_certificate",
"file": "http://localhost:3000/uploads/spob/1/international_tonnage_certificate.pdf",
"status": "waiting",
"expired": false,
"remark": null,
"expired_at": "2020-06-30T00:00:00.000+07:00",
"released_at": null,
"created_at": "2020-05-12T15:43:49.470+07:00",
"updated_at": "2020-05-12T15:43:49.470+07:00"
},
...
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment