brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (BROOKLYN-153) REST API Inconsistencies
Date Thu, 02 Jul 2015 11:20:04 GMT


ASF GitHub Bot commented on BROOKLYN-153:

Github user tbouron commented on the pull request:
    @neykov: Right, I was not aware of that. I guess I'm confused because we use two different
terms internally and externally.
    Anyway, is everyone ok if I change `type` by `symbolicName` then?

> REST API Inconsistencies
> ------------------------
>                 Key: BROOKLYN-153
>                 URL:
>             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

View raw message