Project

General

Profile

Actions

Bug #6844

closed

Going to /api/v2 shows API v1 routes rather than v2

Added by Dominic Cleal over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1105773
If I go to /api/v2 in a fortello install, I do not see all the endpoints for katello in there. What I see listed is:

"links": {
"List all authsource ldaps": "/api/auth_source_ldaps",
"List all media": "/api/media",
"List of subnets": "/api/subnets",
"List roles": "/api/roles",
"List all hosts": "/api/hosts",
"List all users": "/api/users",
"List all ptables": "/api/ptables",
"List all lookup_keys": "/api/lookup_keys",
"List all architectures": "/api/architectures",
"List templates": "/api/config_templates",
"List all compute resources": "/api/compute_resources",
"List all settings": "/api/settings",
"List all audits": "/api/audits",
"List all fact values": "/api/fact_values",
"List all smart_proxies": "/api/smart_proxies",
"List all models": "/api/models",
"List all puppetclasses": "/api/puppetclasses",
"Show available links": "/api",
"List all operating systems": "/api/operatingsystems",
"List all common parameters": "/api/common_parameters",
"Get Dashboard results": "/api/dashboard",
"List all usergroups": "/api/usergroups",
"List all reports": "/api/reports",
"List of domains": "/api/domains",
"Get statistics": "/api/statistics",
"List all bookmarks": "/api/bookmarks",
"List all images for compute resource": "/api/compute_resources/:compute_resource_id/images",
"List all autosign": "/api/smart_proxies/smart_proxy_id/autosign",
"List all template kinds": "/api/template_kinds",
"List all environments": "/api/environments",
"List all hostgroups": "/api/hostgroups",
"List custom info": "/katello/api/custom_info/:informable_type/:informable_id",
"List distributors in environment": "/katello/api/environments/:environment_id/distributors",
"List permissions for a role": "/katello/api/roles/:role_id/permissions",
"Shows status of system and it's subcomponents": "/katello/api/about",
"List LDAP groups associated with the role": "/katello/api/roles/:role_id/ldap_groups",
"Get list of errata associated with the host collection": "/katello/api/organizations/:organization_id/host_collections/:host_collection_id/errata",
"Show status": "/api/status"
}
Actions

Also available in: Atom PDF