Skip to content

Add apiServerApiKey to VertxConfig.java utility #28

Open
thechibuikem wants to merge 1 commit into
hyphae:vertex-4from
thechibuikem:vertex-4
Open

Add apiServerApiKey to VertxConfig.java utility #28
thechibuikem wants to merge 1 commit into
hyphae:vertex-4from
thechibuikem:vertex-4

Conversation

@thechibuikem

Copy link
Copy Markdown

Follow up to hyphae/apis-web/pull/13

Reads apiServer.apiKey from CONFIG, used by apis-web's authentication check

Reads apiServer.apiKey from CONFIG, used by apis-web's authentication check

Signed-off-by: Chukwuemeka David <david.chukwuemeka.swe@gmail.com>
@thechibuikem thechibuikem requested a review from FlawzyByte July 5, 2026 18:35
@thechibuikem thechibuikem changed the title Add apiServerApiKey to VertxConfig.java utility #28 Add apiServerApiKey to VertxConfig.java utility Jul 5, 2026

@FlawzyByte FlawzyByte left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good catch david, extending the mechanism of apis-web
LGTM!

@FlawzyByte

Copy link
Copy Markdown
Member

@subhramit
Hi suba I hope you're doing great, can you review this PR man?
Thanks! :)

Comment on lines +96 to +98
public static String apiServerApiKey(){
return config.getString("apiServer","apiKey")
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please fix the formatting a bit - see how the other methods are formatted.

  1. javadoc indentation
  2. space before opening curly brace, indent of closing curly brace
  3. Comma before the second getString param
  4. Henceforth we don't need to include chinese javadoc comments as now the project is maintained by us.

To make at least 1, 2, 3 a part of automated CI checks, and also integrate into IDE, we can introduce Checkstyle eventually (cc @FlawzyByte).

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.

3 participants