Project

General

Profile

Actions

Bug #6991

open

API v2 - support unwrapped POST/PUT parameters even though it's not documented

Added by Joseph Magen almost 10 years ago. Updated about 8 years ago.

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

Description

add wrap_parameters for each controller to wrap setter methods that are not db attribute_names


Related issues 3 (0 open3 closed)

Related to Foreman - Bug #6696: API v2 - specify the key in which the parameters would be wrapped rather than passing model nameClosedJoseph Magen07/20/2014Actions
Has duplicate Foreman - Bug #8017: *_ids attributes have to be wrapped in an extra hashDuplicateJoseph Magen10/21/2014Actions
Has duplicate Foreman - Bug #19335: Adding media via the REST API does not correctly associate org/locationDuplicate04/20/2017Actions
Actions #1

Updated by The Foreman Bot almost 10 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/1668 added
  • Pull request deleted ()
Actions #2

Updated by Dominic Cleal almost 10 years ago

  • Related to Bug #6696: API v2 - specify the key in which the parameters would be wrapped rather than passing model name added
Actions #3

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.7.5 to 1.7.4
Actions #4

Updated by Anonymous over 9 years ago

  • Target version changed from 1.7.4 to 1.7.3
Actions #5

Updated by Dominic Cleal over 9 years ago

  • Target version changed from 1.7.3 to 1.7.2
Actions #6

Updated by Dominic Cleal over 9 years ago

  • Has duplicate Bug #8017: *_ids attributes have to be wrapped in an extra hash added
Actions #7

Updated by Dominic Cleal about 8 years ago

  • Status changed from Ready For Testing to New
  • Assignee deleted (Joseph Magen)
  • Target version deleted (1.7.2)
  • Pull request deleted (https://github.com/theforeman/foreman/pull/1668)

PR was closed. The manual does document unwrapped parameters, while apipie prefers wrapped. Both should work as it's currently documented, so I'm leaving this open.

Actions #8

Updated by Dominic Cleal about 7 years ago

  • Has duplicate Bug #19335: Adding media via the REST API does not correctly associate org/location added
Actions

Also available in: Atom PDF