diff --git a/test/orderBookingsPost.http b/test/orderBookingsPost.http index 9a33e300..1fcaaed9 100644 --- a/test/orderBookingsPost.http +++ b/test/orderBookingsPost.http @@ -12,7 +12,7 @@ Content-Type: application/json POST https://api.truckwash.dk:4433/subusers Accept: application/json Content-Type: application/json -Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8 +Authorization: Bearer {{ADMIN_BEARER_TOKEN}} { "cvr": 41004355, @@ -21,24 +21,24 @@ Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb206 } ### GET request to /subusers/setup -GET https://api.truckwash.dk:4433/subusers/setup?token=1c1be8280bac3937487e5c77b76bb839 +GET https://api.truckwash.dk:4433/subusers/setup?token={{SUBUSER_SETUP_TOKEN}} Accept: application/json Content-Type: application/json -Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8 +Authorization: Bearer {{ADMIN_BEARER_TOKEN}} ### POST request to /subusers/setup POST https://api.truckwash.dk:4433/subusers/setup Accept: application/json Content-Type: application/json -Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8 +Authorization: Bearer {{ADMIN_BEARER_TOKEN}} { - "token": "1c1be8280bac3937487e5c77b76bb839", + "token": "{{SUBUSER_SETUP_TOKEN}}", "name": "Test Subuser", "username": "testsubuser", "email": "jb@truckwash.dk", - "password": "Test1234" + "password": "{{SUBUSER_PASSWORD}}" } ### POST request to /subusers/auth/password @@ -48,42 +48,42 @@ Content-Type: application/json { "username": "testsubuser", - "password": "Test1234" + "password": "{{SUBUSER_PASSWORD}}" } ### 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 +Authorization: Bearer {{SUBUSER_BEARER_TOKEN}} 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 +Authorization: Bearer {{SUBUSER_BEARER_TOKEN}} 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 +Authorization: Bearer {{SUBUSER_BEARER_TOKEN}} 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 +Authorization: Bearer {{SUBUSER_BEARER_TOKEN}} 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 +Authorization: Bearer {{SUBUSER_BEARER_TOKEN}} X-Customer-Number: 42331128 @@ -91,39 +91,39 @@ X-Customer-Number: 42331128 GET https://api.truckwash.dk:4433/subusers/me Accept: application/json Content-Type: application/json -Authorization: Bearer 9ed711260d58165ee7601060bf7463f6e201481edd16c8ee4fc4a5f04b79a232 +Authorization: Bearer {{SUBUSER_BEARER_TOKEN}} 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 +Authorization: Bearer {{ADMIN_BEARER_TOKEN}} ### 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 +Authorization: Bearer {{SUBUSER_BEARER_TOKEN}} X-Customer-Number: 42331128 ### GET request to order bookings (list all) GET https://api.truckwash.dk:4433/order-bookings Accept: application/json Content-Type: application/json -Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8 +Authorization: Bearer {{ADMIN_BEARER_TOKEN}} ### GET request to order bookings (specific ID) GET https://api.truckwash.dk:4433/order-bookings?id=1 Accept: application/json Content-Type: application/json -Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8 +Authorization: Bearer {{ADMIN_BEARER_TOKEN}} ### PUT request to order bookings (update specific ID) PUT https://api.truckwash.dk:4433/order-bookings Accept: application/json Content-Type: application/json -Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8 +Authorization: Bearer {{ADMIN_BEARER_TOKEN}} { "id": 4, @@ -136,7 +136,7 @@ Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb206 POST https://api.truckwash.dk:4433/order-bookings/complete Accept: application/json Content-Type: application/json -Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8 +Authorization: Bearer {{ADMIN_BEARER_TOKEN}} { "id": 3, @@ -157,7 +157,7 @@ Content-Type: application/json POST https://api.truckwash.dk:4433/order-bookings Accept: application/json, text/plain, */* Accept-Language: en-GB,en;q=0.6 -Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8 +Authorization: Bearer {{ADMIN_BEARER_TOKEN}} Content-Type: application/json {