You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Ryan Durfey (JIRA)" <ji...@apache.org> on 2017/06/13 21:14:00 UTC
[jira] [Updated] (TC-283) traffic ops api (PUT api/.../server/...)
doc inconsistent with code
[ https://issues.apache.org/jira/browse/TC-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Durfey updated TC-283:
---------------------------
Labels: api_server (was: )
> traffic ops api (PUT api/.../server/...) doc inconsistent with code
> -------------------------------------------------------------------
>
> Key: TC-283
> URL: https://issues.apache.org/jira/browse/TC-283
> Project: Traffic Control
> Issue Type: Bug
> Components: Traffic Ops API
> Affects Versions: 2.1.0
> Reporter: Dan Kirkwood
> Labels: api_server
>
> The Traffic Ops API documentation for "PUT /api/1.2/servers/{:id}" shows that "type" is a required field. It's actually "type_id". I think that's true for all the fields representing foreign keys.
> Documentation is here: http://trafficcontrol.incubator.apache.org/docs/latest/development/traffic_ops_api/v12/server.html
> Code is here: https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/API/Server.pm#L201
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)