-
Notifications
You must be signed in to change notification settings - Fork 338
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
fix(api): add api initialization notice #4869
Merged
Merged
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9451270
fix: add notice when API is unavailable during batch data syncing
gacevicljubisa 5809000
feat(api): add middleware for handling route availability
gacevicljubisa 90b5008
fix(api): improve naming and add comments
gacevicljubisa 8a7e6fb
fix(router): add StatusNotImplemented when swap or checkbook are disa…
gacevicljubisa b95c4b6
fix(api): resolve lint issue regarding missing header
gacevicljubisa 656fc4e
fix(api): revert accidental GET to POST for wallet/withdraw
gacevicljubisa af97829
fix(api): preserve middleware order for checkbook endpoint to ensure …
gacevicljubisa 144702d
chore(api): remove unnecessary comments
gacevicljubisa 7e51fea
fix(api): resole linter issue
gacevicljubisa f40b1b3
refactor(api): assign handler only in Mount()
gacevicljubisa cd145a3
Revert "fix(api): resole linter issue"
gacevicljubisa 46bc6a0
fix(api): revert changes regarding Handler
gacevicljubisa 6c903d0
fix(api): resolve linter issue
gacevicljubisa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why have an option if we can explicitly enable the the full API using
EnableFullAPI()
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.
Initial idea to provide options is for unit testing purposes. Was considering to add
WithFullAPIDisabled
option as well. And then expandtestServerOptions
in api_test.go.Also it can be used in one line to mount and enable
apiService.Mount(api.WithFullAPI())
, which is the case in devnode.goThere 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.
Option is removed