Bug #13245
closedApipie json returns duplicated methods
Description
When retrieving the apipie json file to get the api definition, it returns a duplicated method (exactly the same method for the same resource with the same params overt the same http method):
For the full json file see https://gist.githubusercontent.com/fatmcgav/018a26acdf0aeb99b655/raw/e3f92d8c600a27893662336f6f1bdc5d3e9283c3/1.9.2-v2.json
The extract:
{
"short_description": "List storage_domains for a compute resource",
"deprecated": null,
"http_method": "GET",
"api_url": "/api/compute_resources/:id/available_storage_domains"
},
{
"short_description": "List storage domains for a compute resource",
"deprecated": null,
"http_method": "GET",
"api_url": "/api/compute_resources/:id/available_storage_domains"
},
It's not a big issue, but probably an indicator that something fishy is going on.
Files
Updated by Dominic Cleal almost 9 years ago
- Related to Feature #6756: expose vmware resource pools and folders through API added
Updated by Dominic Cleal almost 9 years ago
- Category set to API
- Difficulty set to trivial
There are two "api :GET" lines for exactly the same path in app/controllers/api/v2/compute_resources_controller.rb. The first (without N_()) should be deleted.
Updated by The Foreman Bot almost 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Shlomi Zadok
- Pull request https://github.com/theforeman/foreman/pull/3162 added
Updated by Shlomi Zadok almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset adc07e24c861204a759c08d915da2669ebb4127d.
Updated by Dominic Cleal almost 9 years ago
- Translation missing: en.field_release set to 71