Get Model Record

get
Get model record by primary key

https://YOUR_JET_BRIDGE_HOSTNAME/jet_api/models/:model/:pk/
Request
Response
Request
Path Parameters
model
required
string
Unique model name
pk
required
string
Model primary key
Headers
Authorization
optional
string
Token authentication, example: Authorization: Token f42a3cab3f146b283701a4e314f1c7ba57fdb59e
Response
200: OK
{
"id": 2,
"slug": "china",
"unique_name": "China",
"name": "China",
"alpha_3": "CHN",
"continent": null,
"order": 1,
// (optional) How to display record in interface
"__str__": "China"
}
403: Forbidden