- Update Nginx logging with structured JSON and standard combined format for Elastic integration.
- Add new upstream PHP-FPM servers to Nginx configuration for enhanced load balancing. - Introduce Elastic APM PHP agent in `php.ini` and update Dockerfile for better dependency management. - Secure Kibana and Elasticsearch connections in Metricbeat/Filebeat configurations with credentials. - Remove unused PHP dependencies from `composer.json` and `composer.lock`.
This commit is contained in:
@@ -8,6 +8,105 @@ Content-Type: application/json
|
||||
"country_code": 45
|
||||
}
|
||||
|
||||
### POST request to /subusers
|
||||
POST https://api.truckwash.dk:4433/subusers
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8
|
||||
|
||||
{
|
||||
"cvr": 41004355,
|
||||
"phone_country_code": 45,
|
||||
"phone": 42331128
|
||||
}
|
||||
|
||||
### GET request to /subusers/setup
|
||||
GET https://api.truckwash.dk:4433/subusers/setup?token=1c1be8280bac3937487e5c77b76bb839
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8
|
||||
|
||||
|
||||
### POST request to /subusers/setup
|
||||
POST https://api.truckwash.dk:4433/subusers/setup
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8
|
||||
|
||||
{
|
||||
"token": "1c1be8280bac3937487e5c77b76bb839",
|
||||
"name": "Test Subuser",
|
||||
"username": "testsubuser",
|
||||
"email": "jb@truckwash.dk",
|
||||
"password": "Test1234"
|
||||
}
|
||||
|
||||
### POST request to /subusers/auth/password
|
||||
POST https://api.truckwash.dk:4433/subusers/auth/password
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "testsubuser",
|
||||
"password": "Test1234"
|
||||
}
|
||||
|
||||
### GET request to /order-bookings (As subuser)
|
||||
GET https://api.truckwash.dk:4433/order-bookings
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer 9ed711260d58165ee7601060bf7463f6e201481edd16c8ee4fc4a5f04b79a232
|
||||
X-Customer-Number: 42331128
|
||||
|
||||
### GET request to /order-bookings (As subuser, specific ID)
|
||||
GET https://api.truckwash.dk:4433/order-bookings?id=76
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer 9ed711260d58165ee7601060bf7463f6e201481edd16c8ee4fc4a5f04b79a232
|
||||
X-Customer-Number: 42331128
|
||||
|
||||
### GET request to /vehicles (As subuser)
|
||||
GET https://api.truckwash.dk:4433/vehicles
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer 9ed711260d58165ee7601060bf7463f6e201481edd16c8ee4fc4a5f04b79a232
|
||||
X-Customer-Number: 42331128
|
||||
|
||||
### GET request to /vehicles (As subuser, specific ID)
|
||||
GET https://api.truckwash.dk:4433/vehicles?id=384
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer 9ed711260d58165ee7601060bf7463f6e201481edd16c8ee4fc4a5f04b79a232
|
||||
X-Customer-Number: 42331128
|
||||
|
||||
### GET request to /orders (As subuser)
|
||||
GET https://api.truckwash.dk:4433/orders
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer 9ed711260d58165ee7601060bf7463f6e201481edd16c8ee4fc4a5f04b79a232
|
||||
X-Customer-Number: 42331128
|
||||
|
||||
|
||||
### GET request to /subusers/me (As subuser)
|
||||
GET https://api.truckwash.dk:4433/subusers/me
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer 9ed711260d58165ee7601060bf7463f6e201481edd16c8ee4fc4a5f04b79a232
|
||||
X-Customer-Number: 42331128
|
||||
|
||||
### GET request to /subusers/permission-nodes
|
||||
GET https://api.truckwash.dk:4433/subusers/permission-nodes
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8
|
||||
|
||||
### GET request to /subusers/grants (As subuser)
|
||||
GET https://api.truckwash.dk:4433/subusers/grants
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer 9ed711260d58165ee7601060bf7463f6e201481edd16c8ee4fc4a5f04b79a232
|
||||
X-Customer-Number: 42331128
|
||||
|
||||
### GET request to order bookings (list all)
|
||||
GET https://api.truckwash.dk:4433/order-bookings
|
||||
Accept: application/json
|
||||
|
||||
Reference in New Issue
Block a user