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

Add HTTP Info #1106

Merged
merged 4 commits into from
Oct 27, 2023
Merged

Add HTTP Info #1106

merged 4 commits into from
Oct 27, 2023

Conversation

herr-seppia
Copy link
Member

@herr-seppia herr-seppia commented Oct 26, 2023

Add info endpoint

Request:

curl --location --request POST 'http://127.0.0.1:8080/02/Chain' \
--header 'Rusk-Version: 0.7.0-rc' \
--header 'Content-Type: application/json' \
--data-raw '{
    "topic": "info",
    "data": ""
}'

Response

{
    "bootstrapping_nodes": [],
    "chain_id": null,
    "kadcast_address": "127.0.0.1:9000",
    "version": "0.7.0-rc.0",
    "version_build": "0.7.0-rc.0 (be85c229 2023-10-25)"
}

@herr-seppia herr-seppia marked this pull request as ready for review October 26, 2023 14:54
HDauven
HDauven previously approved these changes Oct 26, 2023
Copy link
Member

@HDauven HDauven left a comment

Choose a reason for hiding this comment

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

Nice, LGTM.

We could consider adding metadata like the role type/enabled features later on.

Copy link
Member

@HDauven HDauven left a comment

Choose a reason for hiding this comment

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

LGTM

@herr-seppia herr-seppia merged commit 4490d4f into master Oct 27, 2023
3 checks passed
@herr-seppia herr-seppia deleted the http-info branch October 27, 2023 09:27
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.

2 participants