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

Finish the skeleton of the api for nomos-node #451

Merged
merged 6 commits into from
Oct 6, 2023
Merged

Conversation

al8n
Copy link
Contributor

@al8n al8n commented Oct 4, 2023

May be we can change the crate name to nomos-api? Maybe we also support grpc endpoint in the future?

The core logic of the PR is not large, but there is a large test case, to test if the swagger docs route works.

@al8n al8n added the enhancement New feature or request label Oct 4, 2023
@al8n al8n self-assigned this Oct 4, 2023
}

#[async_trait::async_trait]
impl Endpoint for TodoEndpoint {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This would be more a Webserver than an endpoint right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

In fact we could call it Backend so it is in the same fashion as other services (?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it is a web server.

Copy link
Collaborator

@danielSanchezQ danielSanchezQ left a comment

Choose a reason for hiding this comment

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

Nicely contained!

Copy link
Contributor

@youngjoon-lee youngjoon-lee left a comment

Choose a reason for hiding this comment

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

Looks nice!

nomos-http-api/src/lib.rs Outdated Show resolved Hide resolved
@al8n al8n merged commit b43d268 into master Oct 6, 2023
7 checks passed
@al8n al8n deleted the nomos-http-api branch October 6, 2023 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants