Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2655C183C3 for ; Thu, 9 Jul 2015 10:14:28 +0000 (UTC) Received: (qmail 18104 invoked by uid 500); 9 Jul 2015 10:14:28 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 18070 invoked by uid 500); 9 Jul 2015 10:14:28 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 18059 invoked by uid 99); 9 Jul 2015 10:14:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 10:14:28 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 09 Jul 2015 10:12:18 +0000 Received: (qmail 17821 invoked by uid 99); 9 Jul 2015 10:14:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 10:14:04 +0000 Date: Thu, 9 Jul 2015 10:14:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@brooklyn.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BROOKLYN-153) REST API Inconsistencies MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/BROOKLYN-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620251#comment-14620251 ] ASF GitHub Bot commented on BROOKLYN-153: ----------------------------------------- Github user neykov commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/729#issuecomment-119898979 good to merge > REST API Inconsistencies > ------------------------ > > Key: BROOKLYN-153 > URL: https://issues.apache.org/jira/browse/BROOKLYN-153 > Project: Brooklyn > Issue Type: Bug > Affects Versions: 0.7.0 > Reporter: Thomas Bouron > > There are inconsistencies with the REST API for the {{/catalog/*}} endpoints. For example, If I want to get an application with the a specific {{type}} or {{id}}, I can use either: > {code} > GET /v1/catalog/entities/{type} (returns the latest version) > GET /v1/catalog/entities/{id} (returns the specific version as id = {type}:{version}) > GET /v1/catalog/application/{id}/{version} > GET /v1/catalog/entities/{id}:{version} > GET /v1/catalog/entities/{id}/{version} > {code} > This is really confusing, especially the last 3 as the {{id}} already contains the {{version}}. These endpoints should rather take the {{type}} instead of {{id}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)