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

docs: specify version for attachment functionality #72

Merged
merged 5 commits into from
Jun 17, 2021

Conversation

mantariksh
Copy link
Contributor

Adds notes to the README to clarify that decryptWithAttachments is only available from v0.9.0 onwards, and also adds a missing await to the example code.

@mantariksh mantariksh requested a review from liangyuanruo June 16, 2021 09:24
README.md Outdated
@@ -96,7 +96,8 @@ app.post(
express.json(),
// Decrypt the submission and attachments
async function (req, res, next) {
const submission = formsg.crypto.decryptWithAttachments(
// Note that this function is only available from version 0.9.0 onwards
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this line is not necessary, as it's already documented below. I'd also like this section to be a "quick start" that is as short, friendly and un-intimidating as possible. Do you think we can simplify further, say by combining /submissions with /submissions-attachment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in 3c49a9c, could you help take a look to see if it makes sense please?

Copy link
Contributor

@liangyuanruo liangyuanruo left a comment

Choose a reason for hiding this comment

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

pre-approving documentation changes

@mantariksh
Copy link
Contributor Author

got some final feedback from @karrui and @LoneRifle, thank you for the inputs!

@mantariksh mantariksh merged commit ff7b3d6 into develop Jun 17, 2021
@mantariksh mantariksh deleted the docs/attachment-version-readme branch June 17, 2021 04:46
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