-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat: add BLOCKSCOUT_HOST, and use it in API docs #2193
Conversation
eb79e19
to
7e93a68
Compare
Pull Request Test Coverage Report for Build 94f19dc3-5da1-4ad8-8573-a89e07539112
💛 - Coveralls |
@@ -2,7 +2,7 @@ | |||
<div class="card"> | |||
<div class="card-body"> | |||
<h1 class="card-title margin-bottom-sm"><%= gettext("API Documentation") %></h2> | |||
<p class="api-text-monospace" data-endpoint-url="<%= BlockScoutWeb.Endpoint.url() %>/api">[ <%= gettext "Base URL:" %> <%= @conn.host %>/api ]</p> | |||
<p class="api-text-monospace" data-endpoint-url="<%= BlockScoutWeb.Endpoint.url() %>/api">[ <%= gettext "Base URL:" %> <%= BlockScoutWeb.Endpoint.url() %>/api ]</p> |
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.
Will it include a port in the URL?
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.
Interesting, I thought that I had confirmed that port was present in that case. I'll take a look.
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.
I see port in the api docs page for JSON RPC, but it is missing in ETH JSON RPC page
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.
Okay, port is included in that already, yes.
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.
One comment.
7e93a68
to
d776208
Compare
@vbaranov if you merge the other PR for the compatibility matrix, I can include this change for that page in this PR. |
@zachdaniel #2167 has been merged |
d776208
to
262b59a
Compare
Motivation
Enhancements
This uses the correct value to render the host in api docs, and allows it to be configured via
BLOCKSCOUT_HOST
env variable.CHANGELOG.md
with this PR