{"action":"created","issue":{"url":"https://api.github.com/repos/samilliken/openDCIM/issues/773","repository_url":"https://api.github.com/repos/samilliken/openDCIM","labels_url":"https://api.github.com/repos/samilliken/openDCIM/issues/773/labels{/name}","comments_url":"https://api.github.com/repos/samilliken/openDCIM/issues/773/comments","events_url":"https://api.github.com/repos/samilliken/openDCIM/issues/773/events","html_url":"https://github.com/samilliken/openDCIM/issues/773","id":156099163,"number":773,"title":"Cannot search device by Custom Values (in API)","user":{"login":"dw-sh-book","id":19410865,"avatar_url":"https://avatars2.githubusercontent.com/u/19410865?v=3","gravatar_id":"","url":"https://api.github.com/users/dw-sh-book","html_url":"https://github.com/dw-sh-book","followers_url":"https://api.github.com/users/dw-sh-book/followers","following_url":"https://api.github.com/users/dw-sh-book/following{/other_user}","gists_url":"https://api.github.com/users/dw-sh-book/gists{/gist_id}","starred_url":"https://api.github.com/users/dw-sh-book/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dw-sh-book/subscriptions","organizations_url":"https://api.github.com/users/dw-sh-book/orgs","repos_url":"https://api.github.com/users/dw-sh-book/repos","events_url":"https://api.github.com/users/dw-sh-book/events{/privacy}","received_events_url":"https://api.github.com/users/dw-sh-book/received_events","type":"User","site_admin":false},"labels":[{"id":3389623,"url":"https://api.github.com/repos/samilliken/openDCIM/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"wilpig","id":1653882,"avatar_url":"https://avatars1.githubusercontent.com/u/1653882?v=3","gravatar_id":"","url":"https://api.github.com/users/wilpig","html_url":"https://github.com/wilpig","followers_url":"https://api.github.com/users/wilpig/followers","following_url":"https://api.github.com/users/wilpig/following{/other_user}","gists_url":"https://api.github.com/users/wilpig/gists{/gist_id}","starred_url":"https://api.github.com/users/wilpig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilpig/subscriptions","organizations_url":"https://api.github.com/users/wilpig/orgs","repos_url":"https://api.github.com/users/wilpig/repos","events_url":"https://api.github.com/users/wilpig/events{/privacy}","received_events_url":"https://api.github.com/users/wilpig/received_events","type":"User","site_admin":false},"assignees":[{"login":"wilpig","id":1653882,"avatar_url":"https://avatars1.githubusercontent.com/u/1653882?v=3","gravatar_id":"","url":"https://api.github.com/users/wilpig","html_url":"https://github.com/wilpig","followers_url":"https://api.github.com/users/wilpig/followers","following_url":"https://api.github.com/users/wilpig/following{/other_user}","gists_url":"https://api.github.com/users/wilpig/gists{/gist_id}","starred_url":"https://api.github.com/users/wilpig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilpig/subscriptions","organizations_url":"https://api.github.com/users/wilpig/orgs","repos_url":"https://api.github.com/users/wilpig/repos","events_url":"https://api.github.com/users/wilpig/events{/privacy}","received_events_url":"https://api.github.com/users/wilpig/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/samilliken/openDCIM/milestones/15","html_url":"https://github.com/samilliken/openDCIM/milestone/15","labels_url":"https://api.github.com/repos/samilliken/openDCIM/milestones/15/labels","id":2340451,"number":15,"title":"4.4","description":"Upgrade dependency libraries to use composer, plus get latest version that still supports PHP 5.5\r\nMake the API consistent - all routes can take either form variables or JSON input\r\nAdd the ability to place fixtures on the map - air handlers, PDUs, etc, that won't screw up the metrics on total U, etc.\r\nBasically try to get about half of what we wanted to be in 5.0 and take it in baby steps","creator":{"login":"samilliken","id":1653883,"avatar_url":"https://avatars1.githubusercontent.com/u/1653883?v=3","gravatar_id":"","url":"https://api.github.com/users/samilliken","html_url":"https://github.com/samilliken","followers_url":"https://api.github.com/users/samilliken/followers","following_url":"https://api.github.com/users/samilliken/following{/other_user}","gists_url":"https://api.github.com/users/samilliken/gists{/gist_id}","starred_url":"https://api.github.com/users/samilliken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samilliken/subscriptions","organizations_url":"https://api.github.com/users/samilliken/orgs","repos_url":"https://api.github.com/users/samilliken/repos","events_url":"https://api.github.com/users/samilliken/events{/privacy}","received_events_url":"https://api.github.com/users/samilliken/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":16,"state":"open","created_at":"2017-02-22T13:21:53Z","updated_at":"2017-03-14T11:42:25Z","due_on":"2017-04-30T07:00:00Z","closed_at":null},"comments":4,"created_at":"2016-05-21T12:13:48Z","updated_at":"2017-03-21T21:26:50Z","closed_at":null,"body":"Hi opendcim team,\n\nIt is so handy that we can see Custom Values in the api\n\n```\ncurl -s -H -H \"UserID:xxx\" -H \"APIKey:xxx\" ''http://opendcim.org/demo/api/v1/device?Label=SW-AD01' | python -m json.tool | grep status\n            \"status\": \"Live\"`\n```\n\nHowever, it would be better to support search by Custom Values as well, like this\n\n```\ncurl  -H \"UserID:xxx\" -H \"APIKey:xxx\" 'http://opendcim.org/demo/api/v1/device?Label=SW-AD01&status=Live'\n```\n\nCould you kindly consider this ?\n"},"comment":{"url":"https://api.github.com/repos/samilliken/openDCIM/issues/comments/288224208","html_url":"https://github.com/samilliken/openDCIM/issues/773#issuecomment-288224208","issue_url":"https://api.github.com/repos/samilliken/openDCIM/issues/773","id":288224208,"user":{"login":"FliesLikeABrick","id":1180584,"avatar_url":"https://avatars0.githubusercontent.com/u/1180584?v=3","gravatar_id":"","url":"https://api.github.com/users/FliesLikeABrick","html_url":"https://github.com/FliesLikeABrick","followers_url":"https://api.github.com/users/FliesLikeABrick/followers","following_url":"https://api.github.com/users/FliesLikeABrick/following{/other_user}","gists_url":"https://api.github.com/users/FliesLikeABrick/gists{/gist_id}","starred_url":"https://api.github.com/users/FliesLikeABrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FliesLikeABrick/subscriptions","organizations_url":"https://api.github.com/users/FliesLikeABrick/orgs","repos_url":"https://api.github.com/users/FliesLikeABrick/repos","events_url":"https://api.github.com/users/FliesLikeABrick/events{/privacy}","received_events_url":"https://api.github.com/users/FliesLikeABrick/received_events","type":"User","site_admin":false},"created_at":"2017-03-21T21:26:50Z","updated_at":"2017-03-21T21:26:50Z","body":"@samilliken  any input on how we refer to custom values in the URL as a search criteria?  For example, some of ours have non-alphanum characters in them that might not be the best for using as a key in the URL.  With your input on that, there is a good probability we will work on a patch for this that I would like to share upstream once it is ready."}}
{"actor":{"display_login":"FliesLikeABrick"}}