Actions
Feature #2969
closedremove all legacy api code in UI controllers
Description
User must now use /api/ on json calls that are routed to the API controllers, rather than the UI controllers responding with json
Actions
Added by Joseph Magen almost 13 years ago. Updated almost 13 years ago.
Description
User must now use /api/ on json calls that are routed to the API controllers, rather than the UI controllers responding with json
As announced in the 1.2 release notes:
Pre-1.1 API (non-/api) is deprecated
The older API is now deprecated and users should migrate to the versioned API at /api, available since Foreman 1.1. If you use paths such as /hosts rather than /api/hosts then you are using the pre-1.1 API and should change your program to use the new one.
http://theforeman.org/manuals/1.2/index.html#Upgradenotes
An HTTP 400 response will result with a message instructing the user to use the /api prefix instead.
Applied in changeset 76e5dd41bd575f7e6df7c7422660510216a9b964.