GET https://{API_DOMAIN}/api/v1/company
curl -X GET
-H "Content-Type: application/json"
'{"name": "vip"}'
https://{API_HOST}/api/v1/company
{
"data": [
{
"id": 1,
"name": "FIRST LINE",
"sn": '50889516',
"domains": [
"https://www.firstline.cc/"
],
"contacts_count": 1,
"description": null,
"creater_id": 1,
"creater": {...}
}
],
"links": {...},
"meta": {...}
}
GET https://{API_DOMAIN}/api/v1/company/{{ company }}
curl -X GET
-H "Content-Type: application/json"
https://{API_HOST}/api/v1/company/1
{
"data": {
"id": 1,
"name": "FIRST LINE",
"sn": '50889516',
"domains": [
"https://www.firstline.cc/"
],
"contacts_count": 1,
"description": null,
"creater_id": 1,
"creater": {...}
}
}
POST https://{API_DOMAIN}/api/v1/company
'{"name": "FIRST LINE", "description": "企業級客服系統" }'
https://{API_HOST}/api/v1/company
{
"data": {
"id": 1,
"name": "FIRST LINE",
"sn": '50889516',
"domains": [
"https://www.firstline.cc/"
],
"contacts_count": 1,
"description": null,
"creater_id": 1,
"creater": {...}
}
}
PUT https://{API_DOMAIN}/api/v1/company/{{ company }}
curl -X PUT
-H "Content-Type: application/json"
'{"name": "Acquire Tech" }'
https://{API_HOST}/api/v1/company/1
{
"data": {
"id": 1,
"name": "FIRST LINE",
"sn": '50889516',
"domains": [
"https://www.firstline.cc/"
],
"contacts_count": 1,
"description": null,
"creater_id": 1,
"creater": {...}
}
}