Created
November 16, 2021 16:30
-
-
Save AndreAffonso/1f0d2ce1b747dd9799fc53eaf76ba288 to your computer and use it in GitHub Desktop.
Inspection response with steps included
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [{ | |
"id": "d341c4fe-93c7-440d-af4a-ccc1a9ab0d58", | |
"type": "inspection", | |
"attributes": { | |
"id": "d341c4fe-93c7-440d-af4a-ccc1a9ab0d58", | |
"state": "being_reviewed", | |
"started_at": "2021-11-16T15:44:43.373Z", | |
"submitted_at": "2021-11-16T16:04:59.390Z", | |
"user_id": "45de7133-ab0f-47de-b662-7c7471d5e5f5", | |
"approved_at": null, | |
"rejected_at": null, | |
"created_at": "2021-11-16T15:44:31.587Z", | |
"updated_at": "2021-11-16T16:05:13.408Z", | |
"attempts": 1, | |
"max_attempts": 9999, | |
"steps_count": 0, | |
"linked_entity_type": "Auto::Contract", | |
"linked_entity_id": "0228cf89-8c36-48ca-99d2-64702cf1c6e3", | |
"external_ops_id": "461276130", | |
"current_phase": "Analise do veiculo" | |
}, | |
"relationships": { | |
"steps": { | |
"data": [{ | |
"id": "2d18cfa6-3917-4507-9dc6-a2b99e10f69b", | |
"type": "step" | |
}, { | |
"id": "d96a898c-c62b-4c19-8aa6-741c2ea7ff9e", | |
"type": "step" | |
}, { | |
"id": "b139732c-c6c1-4fef-8741-49c42ece72c9", | |
"type": "step" | |
}, { | |
"id": "98415890-75d1-4aa8-93a8-40902f214f80", | |
"type": "step" | |
}, { | |
"id": "30f9234a-033b-4f68-91bd-275a78882fb5", | |
"type": "step" | |
}, { | |
"id": "66e2406c-69bd-41ce-a245-09eb1e344c9c", | |
"type": "step" | |
}, { | |
"id": "b76f9d3c-f1f9-48a9-adf2-1c689d87544b", | |
"type": "step" | |
}, { | |
"id": "cec12108-06a4-4c15-a243-7fa08b67b6d3", | |
"type": "step" | |
}, { | |
"id": "ab6ddc43-37ba-4130-b46c-31abf75cb96a", | |
"type": "step" | |
}, { | |
"id": "9fe11cb5-deca-42a7-9351-75335af31892", | |
"type": "step" | |
}] | |
}, | |
"notes": { | |
"data": [] | |
} | |
}, | |
"links": { | |
"self": "/admin/inspections/d341c4fe-93c7-440d-af4a-ccc1a9ab0d58" | |
} | |
}], | |
"included": [{ | |
"id": "2d18cfa6-3917-4507-9dc6-a2b99e10f69b", | |
"type": "step", | |
"attributes": { | |
"id": "2d18cfa6-3917-4507-9dc6-a2b99e10f69b", | |
"state": "submitted", | |
"name": "Foto da frente do carro", | |
"tag": "carro_frente", | |
"created_at": "2021-11-16T15:44:31.612Z", | |
"updated_at": "2021-11-16T15:46:12.008Z", | |
"public_urls": ["https://pier-inspections-prod.s3.sa-east-1.amazonaws.com/inspections/d341c4fe-93c7-440d-af4a-ccc1a9ab0d58/1/1_carro_frente.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2PYQOVZWULFE7WWA%2F20211116%2Fsa-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211116T161427Z&X-Amz-Expires=1800&X-Amz-SignedHeaders=host&X-Amz-Signature=2461c2f744b4bee74f94736676ee146cdbc976fc7835a4f206dea32fa5155a66"], | |
"attempts": 1 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}, { | |
"id": "d96a898c-c62b-4c19-8aa6-741c2ea7ff9e", | |
"type": "step", | |
"attributes": { | |
"id": "d96a898c-c62b-4c19-8aa6-741c2ea7ff9e", | |
"state": "submitted", | |
"name": "Foto da lateral do passageiro", | |
"tag": "carro_lateral_passageiro", | |
"created_at": "2021-11-16T15:44:31.649Z", | |
"updated_at": "2021-11-16T15:46:37.830Z", | |
"public_urls": ["https://pier-inspections-prod.s3.sa-east-1.amazonaws.com/inspections/d341c4fe-93c7-440d-af4a-ccc1a9ab0d58/1/2_carro_lateral_passageiro.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2PYQOVZWULFE7WWA%2F20211116%2Fsa-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211116T161427Z&X-Amz-Expires=1800&X-Amz-SignedHeaders=host&X-Amz-Signature=247675eafb6b8a059ea9fb98de689a5f63d52abefe94347194dd55d845c14ea2"], | |
"attempts": 1 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}, { | |
"id": "b139732c-c6c1-4fef-8741-49c42ece72c9", | |
"type": "step", | |
"attributes": { | |
"id": "b139732c-c6c1-4fef-8741-49c42ece72c9", | |
"state": "submitted", | |
"name": "Foto da traseira do carro", | |
"tag": "carro_traseira", | |
"created_at": "2021-11-16T15:44:31.676Z", | |
"updated_at": "2021-11-16T15:46:50.862Z", | |
"public_urls": ["https://pier-inspections-prod.s3.sa-east-1.amazonaws.com/inspections/d341c4fe-93c7-440d-af4a-ccc1a9ab0d58/1/3_carro_traseira.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2PYQOVZWULFE7WWA%2F20211116%2Fsa-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211116T161427Z&X-Amz-Expires=1800&X-Amz-SignedHeaders=host&X-Amz-Signature=439ba1aabc0a8bb714aa5f5620c8684b9a43f5adec9df431e66e18a39e71d2a1"], | |
"attempts": 1 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}, { | |
"id": "98415890-75d1-4aa8-93a8-40902f214f80", | |
"type": "step", | |
"attributes": { | |
"id": "98415890-75d1-4aa8-93a8-40902f214f80", | |
"state": "submitted", | |
"name": "Foto da lateral do motorista", | |
"tag": "carro_lateral_motorista", | |
"created_at": "2021-11-16T15:44:31.710Z", | |
"updated_at": "2021-11-16T15:47:29.362Z", | |
"public_urls": ["https://pier-inspections-prod.s3.sa-east-1.amazonaws.com/inspections/d341c4fe-93c7-440d-af4a-ccc1a9ab0d58/1/4_carro_lateral_motorista.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2PYQOVZWULFE7WWA%2F20211116%2Fsa-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211116T161428Z&X-Amz-Expires=1800&X-Amz-SignedHeaders=host&X-Amz-Signature=b7940f4343f6f75a1378777ecaba5271b74b0724aa11ea54367f41ae56327dae"], | |
"attempts": 1 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}, { | |
"id": "30f9234a-033b-4f68-91bd-275a78882fb5", | |
"type": "step", | |
"attributes": { | |
"id": "30f9234a-033b-4f68-91bd-275a78882fb5", | |
"state": "submitted", | |
"name": "Foto do painel com o carro ligado", | |
"tag": "carro_painel", | |
"created_at": "2021-11-16T15:44:31.744Z", | |
"updated_at": "2021-11-16T15:48:43.627Z", | |
"public_urls": ["https://pier-inspections-prod.s3.sa-east-1.amazonaws.com/inspections/d341c4fe-93c7-440d-af4a-ccc1a9ab0d58/1/5_carro_painel.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2PYQOVZWULFE7WWA%2F20211116%2Fsa-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211116T161428Z&X-Amz-Expires=1800&X-Amz-SignedHeaders=host&X-Amz-Signature=73393bb81d72fa5d47bda740f15ff2100d008da17352ca8ce59af55d0c66f770"], | |
"attempts": 1 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}, { | |
"id": "66e2406c-69bd-41ce-a245-09eb1e344c9c", | |
"type": "step", | |
"attributes": { | |
"id": "66e2406c-69bd-41ce-a245-09eb1e344c9c", | |
"state": "submitted", | |
"name": "Foto do motor do carro", | |
"tag": "carro_motor", | |
"created_at": "2021-11-16T15:44:31.776Z", | |
"updated_at": "2021-11-16T15:49:32.888Z", | |
"public_urls": ["https://pier-inspections-prod.s3.sa-east-1.amazonaws.com/inspections/d341c4fe-93c7-440d-af4a-ccc1a9ab0d58/1/6_carro_motor.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2PYQOVZWULFE7WWA%2F20211116%2Fsa-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211116T161428Z&X-Amz-Expires=1800&X-Amz-SignedHeaders=host&X-Amz-Signature=54b320a5c0b7f95d77ad25ac18a4f77898017d3c545f19bf50223166bccb3823"], | |
"attempts": 1 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}, { | |
"id": "b76f9d3c-f1f9-48a9-adf2-1c689d87544b", | |
"type": "step", | |
"attributes": { | |
"id": "b76f9d3c-f1f9-48a9-adf2-1c689d87544b", | |
"state": "submitted", | |
"name": "Foto do chassi do carro", | |
"tag": "carro_chassi", | |
"created_at": "2021-11-16T15:44:31.813Z", | |
"updated_at": "2021-11-16T15:50:11.107Z", | |
"public_urls": ["https://pier-inspections-prod.s3.sa-east-1.amazonaws.com/inspections/d341c4fe-93c7-440d-af4a-ccc1a9ab0d58/1/7_carro_chassi.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2PYQOVZWULFE7WWA%2F20211116%2Fsa-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211116T161428Z&X-Amz-Expires=1800&X-Amz-SignedHeaders=host&X-Amz-Signature=a839e84fac4cdce7f7bc473a3f917416e2d7e3d4b6c0ca6b295961666062c9f0"], | |
"attempts": 1 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}, { | |
"id": "cec12108-06a4-4c15-a243-7fa08b67b6d3", | |
"type": "step", | |
"attributes": { | |
"id": "cec12108-06a4-4c15-a243-7fa08b67b6d3", | |
"state": "submitted", | |
"name": "Foto do CRV/DUT", | |
"tag": "carro_crv_dut", | |
"created_at": "2021-11-16T15:44:31.841Z", | |
"updated_at": "2021-11-16T16:04:59.403Z", | |
"public_urls": ["https://pier-inspections-prod.s3.sa-east-1.amazonaws.com/inspections/d341c4fe-93c7-440d-af4a-ccc1a9ab0d58/1/8_carro_crv_dut.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA2PYQOVZWULFE7WWA%2F20211116%2Fsa-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211116T161428Z&X-Amz-Expires=1800&X-Amz-SignedHeaders=host&X-Amz-Signature=857bd9708f8255b194f97357c1f066f0a1010f67f06429f503a9fecbca713eee"], | |
"attempts": 1 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}, { | |
"id": "ab6ddc43-37ba-4130-b46c-31abf75cb96a", | |
"type": "step", | |
"attributes": { | |
"id": "ab6ddc43-37ba-4130-b46c-31abf75cb96a", | |
"state": "unrequested", | |
"name": "Comprovante de residência", | |
"tag": "comprovante_residencia", | |
"created_at": "2021-11-16T15:44:31.855Z", | |
"updated_at": "2021-11-16T15:44:31.878Z", | |
"public_urls": [], | |
"attempts": 0 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}, { | |
"id": "9fe11cb5-deca-42a7-9351-75335af31892", | |
"type": "step", | |
"attributes": { | |
"id": "9fe11cb5-deca-42a7-9351-75335af31892", | |
"state": "unrequested", | |
"name": "Novo documento do carro", | |
"tag": "carro_novo_documento", | |
"created_at": "2021-11-16T15:44:31.881Z", | |
"updated_at": "2021-11-16T15:44:31.899Z", | |
"public_urls": [], | |
"attempts": 0 | |
}, | |
"relationships": { | |
"notes": { | |
"data": [] | |
} | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment