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 missing REST endpoints for karaf distribution #895

Merged
merged 3 commits into from
Nov 14, 2017

Conversation

tbouron
Copy link
Member

@tbouron tbouron commented Nov 14, 2017

This change add some missing endpoint for the karaf distribution:

  • /v1/catalog/bundles
  • /v1/catalog/types

@@ -75,6 +75,7 @@ limitations under the License.
<bean id="apidocResourceBean" class="org.apache.brooklyn.rest.resources.ApidocResource"/>
<bean id="applicationResourceBean" class="org.apache.brooklyn.rest.resources.ApplicationResource"/>
<bean id="catalogResourceBean" class="org.apache.brooklyn.rest.resources.CatalogResource"/>
<bean id="bundlesResourceBean" class="org.apache.brooklyn.rest.resources.BundleResource"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

also need typesResourceBean for TypeResource

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! Endpoint added @aledsage

@tbouron tbouron changed the title Add missing /v1/catalog/bundles REST endpoint for karaf distribution Add missing REST endpoints for karaf distribution Nov 14, 2017
@@ -74,18 +74,20 @@ limitations under the License.
<bean id="adjunctResourceBean" class="org.apache.brooklyn.rest.resources.AdjunctResource"/>
<bean id="apidocResourceBean" class="org.apache.brooklyn.rest.resources.ApidocResource"/>
<bean id="applicationResourceBean" class="org.apache.brooklyn.rest.resources.ApplicationResource"/>
<bean id="bundlesResourceBean" class="org.apache.brooklyn.rest.resources.BundleResource"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Very minor: I'd go for bundleResourceBean to be consistent with all the others. Then good to merge!

Copy link
Member Author

Choose a reason for hiding this comment

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

@aledsage updated

@asfgit asfgit merged commit f57e28e into apache:master Nov 14, 2017
asfgit pushed a commit that referenced this pull request Nov 14, 2017
@tbouron tbouron deleted the fix/rest-bundles branch November 14, 2017 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants