Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Simplify HTTP API. #107

Merged
merged 5 commits into from
Apr 14, 2022
Merged

Simplify HTTP API. #107

merged 5 commits into from
Apr 14, 2022

Conversation

cobward
Copy link
Collaborator

@cobward cobward commented Apr 13, 2022

Simplify resource access on Kepler by reducing the endpoints to /invoke and /delegate only, and parsing the request from the invocation.

This does not support invocation by only referencing a pre-submitted delegation, because that is hard and it looks like we will require the delegation going forwards anyway.

Simplify resource access on Kepler by reducing the endpoints to
`/invoke` and `/delegate` only, and parsing the request from the
invocation.
@cobward cobward marked this pull request as ready for review April 13, 2022 16:37
@cobward cobward linked an issue Apr 14, 2022 that may be closed by this pull request
Copy link
Member

@chunningham chunningham left a comment

Choose a reason for hiding this comment

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

+523 -993
mmm that's good

looks about fine I think, we can reorganise the create stuff soon. I will make an issue somewhere for as "authorised http gateway" for recreating a restful interface "frontend" as a separate program

impl_fromreq!(DelAuthWrapper, "del");
impl_fromreq!(ListAuthWrapper, "list");
pub enum InvokeAuthWrapper {
Create(OrbitId),
Copy link
Member

Choose a reason for hiding this comment

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

IMO this should be handled by DelegateAuthWrapper, but I understand this maintains the current behaviour so fair enough

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 agreed. I had a go at converting it to a delegation, but I couldn't get it working. I'll put an issue in for this.

@cobward cobward merged commit 4d49467 into main Apr 14, 2022
@cobward cobward deleted the feat/invoke-api branch April 14, 2022 13:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor HTTP API around ZCAPs
2 participants