This is a repository for my test assignment Apigee Weather API. Target API: https://openweathermap.org/current
-
Generate an API key: https://home.openweathermap.org/api_keys
-
Generate access_token:
POST https://34.120.110.39.nip.io/oauth2/v1/access_token?grant_type=client_credentials
Key | Value |
---|---|
grant_type |
client_credentials |
Key | Value | Description |
---|---|---|
client_id |
{cliend_id} |
You can find it in oauth2app in Apps (Apigee UI) |
client_secret |
{client_secret} |
You can find it in oauth2app in Apps (Apigee UI) |
- Make a request:
GET https://34.120.110.39.nip.io/v1/test-task?q={city}&appid={API key}
GET https://34.120.110.39.nip.io/v1/test-task?q=Lviv&appid={API key}
Key | Value | Description |
---|---|---|
q |
{your city} |
Enter desired city here |
appid |
{API key} |
API key generated in step 1 |
-
for API key Verification:
Key Value Description apikey
{cliend_id}
You can find it in oauth2app in Apps (Apigee UI) or in step 2
-
for oAuth2:
Key Value Authorization
Bearer {access_token}