-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
nomos-http-api/tests/todo.rs
Outdated
} | ||
|
||
#[async_trait::async_trait] | ||
impl Endpoint for TodoEndpoint { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 (?)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely contained!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice!
Co-authored-by: Youngjoon Lee <taxihighway@gmail.com>
May be we can change the crate name to
nomos-api
? Maybe we also supportgrpc
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.