Red Hat Bugzilla – Bug 851829
Return base domain for new applications in api document (as descriptor on links?)
Last modified: 2015-05-14 20:52:02 EDT
Currently the site is hardcoding the default application creation domain in Rails config. We need to show the domain as part of the form for creating an app.
Can we get "rhcloud.com" or "dev.rhcloud.com" returned on broker/rest/api ADD_DOMAIN? Perhaps as an attribute of the "id" field like "parent_domain". Or if there's a better place to return it (/broker/rest/domains). We want to retrieve and cache the value for all users, although in the future I could imagine it being different for different domains/users.
Move it to ON_QA, since the following pull request is merged in devenv_2096
Verified on devenv_2096
[rony@localhost qnodejs]$ curl -k -X GET -H 'Accept: application/xml' --user firstname.lastname@example.org:111111 https://ec2-50-16-77-243.compute-1.amazonaws.com/broker/rest/environment
<?xml version="1.0" encoding="UTF-8"?>
We can't provide domain suffix ('rhcloud.com' or 'dev.rhcloud.com) from
broker/rest/api -> returns links and args are input params
broker/rest/domains -> returns domain object(s)
To make it more generic, I added another 'environment' link to broker/rest/api
"rel":"Get environment information",
broker/rest/environment returns 'key':'value' pairs (hash). Example shown in Comment 2.
If site needs any other values instead of hardcoding in site Rails config, we can add to this api.
Assigning to Clayton for corresponding site changes.
*** Bug 869976 has been marked as a duplicate of this bug. ***
(In reply to comment #5)
Tested on INT today, it still exists now, higher the severity in case it block the stage, thanks.
This was fixed as of today.
(In reply to comment #7)
Tested on INT today, it does not exist now, thanks.