Accessioning Type:
[GET] /accessioningtype/<accessioning_type_id>
Example request:
GET /qbench/api/v1/accessioningtype/1 HTTP/1.1
Authorization: Bearer 63ff42c5-49e6-42e2-bc3f-04fbfc22bbcb
Host: <qbench-url>
Example Response:
{'id': 4, 'value': 'Blood'}
[POST]/accessioningtype/<accessioning_type_id>
Example request:
{"value": "Blood"}
Example request:
{"message":"OK"}
[DELETE] /accessioningtype/<accessioning_type_id>
Example request:
DELETE /qbench/api/v1/accessioningtype/1 HTTP/1.1
Authorization: Bearer 63ff42c5-49e6-42e2-bc3f-04fbfc22bbcb
Host: <qbench-url>
Example response:
{"message":"OK"}
[GET] /accessioningtype
Example Response:
{ 'data': [{'id': 4, 'value': 'Blood'},
{'id': 6, 'value': 'Cell'},
{'id': 10, 'value': 'Hair'},
{'id': 13, 'value': 'Harvest Lot (Before Processing)'},
{'id': 14, 'value': 'Process Lot (extraction -based final product)'},
{'id': 12, 'value': 'R&D'},
{'id': 9, 'value': 'Serum'}],
'qbe6': 'ef',
'total_count': 7,
'total_pages': 1}
[POST] /accessioningtype
Example Request:
POST /qbench/api/v1/accessioningtype HTTP/1.1
Authorization: Bearer 63ff42c5-49e6-42e2-bc3f-04fbfc22bbcb
Host: <qbench-url>
Content-Type: application/json
{
"value": "Example Accessioning Type"
}
Example response:
{'id': 16}
Accessioning Type on Sample response:
{"id": 123, "description": "A Sample Description", "accessioning_type_id": 987, "accessioning_type":
{"id"; 987, "value": "Blood"}}
Updating Sample Accessioning Type by ID:
POST /sample/123 {"accessioning_type_id": 456, "description": "Another Sample Description"}
Comments
0 comments
Please sign in to leave a comment.