Project

General

Profile

Feature #2969

remove all legacy api code in UI controllers

Added by Joseph Magen over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

User must now use /api/ on json calls that are routed to the API controllers, rather than the UI controllers responding with json


Related issues

Related to Foreman - Feature #2985: Remove as_json methods from AR models Closed2013-08-29
Related to Foreman - Bug #3089: Updating settings causes settings page to load again within the pageClosed2013-09-14

Associated revisions

Revision 76e5dd41 (diff)
Added by Joseph Magen over 9 years ago

fixes #2969 - remove all legacy api code in UI controllers, add deprecation response

History

#1 Updated by Joseph Magen over 9 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by Dominic Cleal over 9 years ago

  • Category set to Rails
  • Target version set to 1.3.0

#3 Updated by Dominic Cleal over 9 years ago

  • Category changed from Rails to API

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.

#4 Updated by Dominic Cleal over 9 years ago

  • Related to Feature #2985: Remove as_json methods from AR models added

#5 Updated by Joseph Magen over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Dominic Cleal over 9 years ago

  • Related to Bug #3089: Updating settings causes settings page to load again within the page added

Also available in: Atom PDF