Project

Profile

Help

Issue #790

closed

_href is unecessarily nested in a dict in the response body of consumer registration

Added by ipanova@redhat.com about 9 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

$ curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: webpy" -X POST -k -u admin:admin -d '{"id":"c2"}' "https://localhost/pulp/api/v2/consumers/"
HTTP/1.1 201 Created
Date: Wed, 18 Mar 2015 11:57:52 GMT
Server: Apache/2.4.10 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.5 Python/2.7.5
Location: /pulp/api/v2/consumers/c2/
Content-Length: 2043
Content-Type: application/json

{"consumer": {"display_name": "c2", "description": null, "_ns": "consumers", "notes": {}, "rsa_pub": null, "capabilities": {}, "_id": {"$oid": "5509684045ef485ffe14dfae"}, "id": "c2", "_href": {"_href": "/pulp/api/v2/consumers/c2/"}}, "certificate": "-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQC+BYPuGTtdFDIkOj8mIUJTU1pG4ezkQwxxFF/9+7+tIheHWCeO-----END RSA PRIVATE KEY-----\n-----BEGIN CERTIFICATE-----\nMIICWDCCAUACAgDgMA0GCSqGSIb3DQEBBQUAMDAxHzAdBgNVBAMMFmluYS51c2Vy\nc3lzLnJlZGhhk/PGi+3w4dimAHkLQXved5SU//tJOumYp/tzOjlskgCCzmyozyHqBOepTW96\nx1SLCqi2jU+b7NMcJ4qaR3ZHMknWoR9j8wsXyg==\n-----END CERTIFICATE-----"}

Also available in: Atom PDF