diff --git a/api.http b/api.http index 31a7042..dd8a72e 100644 --- a/api.http +++ b/api.http @@ -1,40 +1,40 @@ ### user profile minimum -GET https://myep-next.ddev.site/api/userinfo +GET {{base_url}}/api/userinfo Accept: application/json Authorization: Bearer {{$auth.token("oauth2_email")}} ### user profile full -GET https://myep-next.ddev.site/api/userinfo +GET {{base_url}}/api/userinfo Accept: application/json Authorization: Bearer {{$auth.token("oauth2_profile")}} ### user crm attributes -GET https://myep-next.ddev.site/api/crm-attributes +GET {{base_url}}/api/crm-attributes Accept: application/json Authorization: Bearer {{$auth.token("oauth2_profile")}} ### API countries -GET https://myep-next.ddev.site/api/countries +GET {{base_url}}/api/countries Accept: application/json Authorization: Bearer {{$auth.token("oauth2_api")}} ### API hotels -GET https://myep-next.ddev.site/api/hotels +GET {{base_url}}/api/hotels Accept: application/json Authorization: Bearer {{$auth.token("oauth2_api")}} ### API hotel -GET https://myep-next.ddev.site/api/hotels/198924 +GET {{base_url}}/api/hotels/198924 Accept: application/json Authorization: Bearer {{$auth.token("oauth2_api")}} ### API pickups -GET https://myep-next.ddev.site/api/pickups +GET {{base_url}}/api/pickups Accept: application/json Authorization: Bearer {{$auth.token("oauth2_api")}} ### API pickup -GET https://myep-next.ddev.site/api/pickups/1 +GET {{base_url}}/api/pickups/1 Accept: application/json Authorization: Bearer {{$auth.token("oauth2_api")}} diff --git a/http-client.env.json b/http-client.env.json index 5964d1f..051e049 100644 --- a/http-client.env.json +++ b/http-client.env.json @@ -33,5 +33,40 @@ } } } + }, + "prod": { + "Security": { + "Auth": { + "oauth2_email": { + "Type": "OAuth2", + "Grant Type": "Authorization Code", + "Client ID": "{{oauth2_client_id}}", + "Client Secret": "{{oauth2_client_secret}}", + "Auth URL": "https://myep.ep-reisen.de/authorize", + "Token URL": "https://myep.ep-reisen.de/token", + "Redirect URL": "https://myep-team.ep-reisen.de/auth/check", + "Scope": "email" + }, + "oauth2_profile": { + "Type": "OAuth2", + "Grant Type": "Authorization Code", + "Client ID": "{{oauth2_client_id}}", + "Client Secret": "{{oauth2_client_secret}}", + "Auth URL": "https://myep.ep-reisen.de/authorize", + "Token URL": "https://myep.ep-reisen.de/token", + "Redirect URL": "https://myep-team.ep-reisen.de/auth/check", + "Scope": "email profile" + }, + "oauth2_api": { + "Type": "OAuth2", + "Grant Type": "Client Credentials", + "Client ID": "{{oauth2_api_client_id}}", + "Client Secret": "{{oauth2_api_client_secret}}", + "Auth URL": "https://myep.ep-reisen.de/authorize", + "Token URL": "https://myep.ep-reisen.de/token", + "Scope": "api" + } + } + } } }