Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clientEnvironment to CNHi documentation #142

Merged
merged 1 commit into from
Sep 15, 2021
Merged

Conversation

gabrieltron
Copy link
Contributor

No description provided.

@gabrieltron
Copy link
Contributor Author

@@ -2031,7 +2032,7 @@ A "CNHI Credentials" resource as a JSON.
const axios = require('axios')
const TOKEN = 'YOUR_TOKEN'

const endpoint = 'https://api.withleaf.io/services/usermanagement/api/cnhi-credentials/{id}'
const endpoint = 'https://api.withleaf.io/services/usermanagement/api/cn-hi-credentials/{id}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow 😓

Copy link
Contributor

@fabyan-alexander fabyan-alexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Just a single extra fix

@@ -2387,7 +2395,8 @@ A CNHI Credentials with status.
```shell
curl -X POST \
-H 'Authorization: Bearer YOUR_TOKEN' \
-d '{"clientId": "str","clientSecret": "str","refreshToken": "str"}' \
-H 'Content-Type: application/json' \
-d '{"clientId": "str", "clientSecret": "str", "refreshToken": "str", "clientEnvironment": "STAGE or PRODUCTION"}' \
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/cnhi-credentials'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/cnhi-credentials'
'https://api.withleaf.io/services/usermanagement/api/users/{leafUserId}/cn-hi-credentials'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sadly, that is correct

@gabrieltron gabrieltron merged commit c55ff9d into master Sep 15, 2021
@gabrieltron gabrieltron deleted the update-cnhi branch September 15, 2021 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants