-
Notifications
You must be signed in to change notification settings - Fork 13
Allow gateway to be driven directly using declarations #27
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
Conversation
Fix logging by aligning versions Extract plugin functionality into a separate class Improve exception messages
| compile "io.apiman:apiman-gateway-engine-beans:$version_apiman" | ||
| compile "io.apiman:apiman-common-plugin:$version_apiman" | ||
| compile "io.apiman:apiman-manager-api-core:$version_apiman" | ||
| runtime "io.apiman:apiman-distro-data:$version_apiman" |
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 was having issues with eclipse + gradle (probably should switch to intellij for good...); probably don't need this as a runtime dep.
distro-data contains various useful resources such as a list of inbuilt policies
| package io.apiman.cli.command; | ||
|
|
||
| import com.google.common.collect.Maps; | ||
| import static io.apiman.cli.util.AuthUtil.DEFAULT_SERVER_PASSWORD; |
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.
Sorry, looks like my eclipse being annoying and reordering dependencies. If you have settings, I'll use those instead.
| @@ -1,11 +1,11 @@ | |||
| /* | |||
| * Copyright 2016 Pete Cornish | |||
| * Copyright 2017 JBoss Inc | |||
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 wasn't deliberate, I'll change it back. Just a refactoring artifact.
|
Here's the gateway format documented informally: |
|
Tests were passing and now fail despite nothing having changed (90fbd8c passed before, but now fails) |
|
Hmm, I think CI might have broken |
|
Pulling in @rpickard to give thoughts/review -- hope you don't mind. |
|
Hi Marc, am I right in thinking that this implementation will allow you to
push a set of api definitions directly to the gateway without going via the
manager?
…On 1 Aug 2017 14:44, "Marc Savy" ***@***.***> wrote:
Pulling in @rpickard <https://github.com/rpickard> to give
thoughts/review -- hope you don't mind.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA3A46KE_2buTKo3sXGEdOhZ1AtVu62Sks5sTyu2gaJpZM4Oit5->
.
|
|
@rpickard yes, exactly! BTW, I'm doing some refactoring work on my local branch to make things work a bit more sensibly, as inheritance is causing some unnecessary duplication (turns out that args4j doesn't support Java 8 interface mixins for adding extra options). |
|
Guys, I've done a bunch more work to move this over to JCommander (for reasons I'll go into more detail on) and think I should probably push onto a new PR or something. |
|
See #28 instead, please. |
Firstly, apologies for the noisy commit timeline -- I'm happy for a squash commit when the moment is right! Was a process of discovery.
Still at seeking feedback stage, but would be hugely appreciative of thoughts as I'm obviously not a pro with this codebase.
Rationale
Rejig the order of commands so that the root is now:
apiman gateway ...apiman manager ...Shares the same fundamental data model as manager; with a small tweak to policy which is non-breaking for the manager functionality.
Declarative only for now.
For both inbuilt and plugin policies it resolves the correct information needed to successfully interact with the Gateway API. This should substantially simplify things.
TODO