Skip to content

Conversation

@morrieinmaas
Copy link
Collaborator

No description provided.

@morrieinmaas morrieinmaas self-assigned this Apr 21, 2021
@morrieinmaas morrieinmaas linked an issue Apr 21, 2021 that may be closed by this pull request
* allows specifying more oprtions that
* are covered in SWAGGER but not in our code yet
* it only gets passed when provided
* reflects the trith of the API where it is optional
@morrieinmaas morrieinmaas force-pushed the issue_14/create_invitation branch from 4d901b6 to 58bff38 Compare April 21, 2021 19:08
@morrieinmaas morrieinmaas changed the title WIP Issue 14/create invitation Issue 14/create invitation Apr 21, 2021
@morrieinmaas
Copy link
Collaborator Author

@wip-abramson please have a quick look and see whether that addresses all points appropriate. Let me know if not. Happy to make further changes. As you'll see what we discussed earlier today is implemented.

logger.debug(f"{connection_id} state updated")

# Combines receive and accept connection api calls
async def accept_connection(self, invitation):

Choose a reason for hiding this comment

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

Again this needs to be versioned change. To 0.2

"service_endpoint": "http://192.168.56.102:8020"
}
"""
params['body'] = invite_options

Choose a reason for hiding this comment

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

Is this right? I don't think so.

I think this body should be sent as json_data

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah good shout! Silly me. It's changed now.

@wip-abramson
Copy link

This looks good. Few minor things. See comments above.

Did you test the json.dumps for params btw?

# Store a received credential
async def store_credential(self, cred_ex_id, credential_id):
body = {"credential_id": credential_id}
async def store_credential(self, cred_ex_id, credential_id: str = None):

Choose a reason for hiding this comment

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

This should not be in this commit. It is also added in separate P.R. #21

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll address that

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@wip-abramson just looked at that and now I'm confused what you mean. The PR you referenced is this PR? Not sure what you mean now. Issue is 14 PR is 21. Happy to change however you like it, please, clarify though😅

@morrieinmaas morrieinmaas force-pushed the issue_14/create_invitation branch from 04cf61d to 3fcf2aa Compare April 30, 2021 14:45
@wip-abramson wip-abramson merged commit 77dea5a into main Apr 30, 2021
@TimoGlastra TimoGlastra deleted the issue_14/create_invitation branch February 24, 2022 09:34
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.

Connections API Create Invitation Bug

3 participants