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

feat: Verifiable Credential REST #829

Merged
merged 1 commit into from
Oct 21, 2021
Merged

Conversation

sandrask
Copy link
Contributor

Add Verifiable Credential REST

Closes #431

Signed-off-by: Sandra Vrtikapa sandra.vrtikapa@securekey.com

Add Verifiable Credential REST

Closes trustbloc#431

Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>
@cla-bot cla-bot bot added the cla-signed label Oct 21, 2021
@codecov
Copy link

codecov bot commented Oct 21, 2021

Codecov Report

Merging #829 (80675a5) into main (f95fccc) will decrease coverage by 0.02%.
The diff coverage is 90.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #829      +/-   ##
==========================================
- Coverage   89.39%   89.36%   -0.03%     
==========================================
  Files         144      145       +1     
  Lines       12725    12755      +30     
==========================================
+ Hits        11375    11399      +24     
- Misses        832      836       +4     
- Partials      518      520       +2     
Impacted Files Coverage Δ
...kg/anchor/anchorevent/vcresthandler/resthandler.go 89.65% <89.65%> (ø)
cmd/orb-server/startcmd/start.go 73.74% <100.00%> (+0.03%) ⬆️
pkg/observer/pubsub.go 94.44% <0.00%> (-2.78%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f95fccc...80675a5. Read the comment docs.


if len(body) > 0 {
if _, err := w.Write(body); err != nil {
logger.Warnf("[%s] Unable to write response: %s", err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should probably be logger.Errorf

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have similar code in other handlers. Also, Bob chose Warnf in his handlers. I don't think it matters too much - we can discuss it and change it in all handler if necessary.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh ok, better to be consistent then - not a major concern I think.

@sandrask sandrask merged commit 5bf6c14 into trustbloc:main Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verifiable Credential REST
3 participants