curl --request GET \
--url http://localhost:8000/api/v1/companies/ \
--header 'Authorization: Bearer <token>'[
{
"name": "<string>",
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"memberships": []
}
]Get all companies (admin only).
curl --request GET \
--url http://localhost:8000/api/v1/companies/ \
--header 'Authorization: Bearer <token>'[
{
"name": "<string>",
"id": 123,
"date_added": "2023-11-07T05:31:56Z",
"date_updated": "2023-11-07T05:31:56Z",
"memberships": []
}
]The access token received from the authorization server in the OAuth 2.0 flow.