Get All Companies
The endpoint retrieves a list of all companies. The user must have the ROLE_ADMIN
authority to access this endpoint.
Endpoint Information
URL:
<custom-env-url>/Testinium.RestApi/api/companies
Method:
GET
Authentication: Required (
Bearer Token
)
Response Body
The response contains a list of companies
Response Fields
Field
Type
Description
id
Long
The unique ID of the company.
company_name
String
The full name of the company.
short_name
String
The short name of the company.
Error Codes
HTTP Code
Error Message
Description
403
ACCESS_DENIED
User lacks ROLE_ADMIN
authority.
500
INTERNAL_SERVER_ERROR
An unexpected error occurred on the server side.
Example Request
2/2
Last updated