{"action":"created","issue":{"url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/283","repository_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard","labels_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/283/comments","events_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/283/events","html_url":"https://github.com/ironmansoftware/universal-dashboard/issues/283","id":344237075,"node_id":"MDU6SXNzdWUzNDQyMzcwNzU=","number":283,"title":"Variable matching within URL \"Part\"","user":{"login":"rdbartram","id":16256546,"node_id":"MDQ6VXNlcjE2MjU2NTQ2","avatar_url":"https://avatars0.githubusercontent.com/u/16256546?v=4","gravatar_id":"","url":"https://api.github.com/users/rdbartram","html_url":"https://github.com/rdbartram","followers_url":"https://api.github.com/users/rdbartram/followers","following_url":"https://api.github.com/users/rdbartram/following{/other_user}","gists_url":"https://api.github.com/users/rdbartram/gists{/gist_id}","starred_url":"https://api.github.com/users/rdbartram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdbartram/subscriptions","organizations_url":"https://api.github.com/users/rdbartram/orgs","repos_url":"https://api.github.com/users/rdbartram/repos","events_url":"https://api.github.com/users/rdbartram/events{/privacy}","received_events_url":"https://api.github.com/users/rdbartram/received_events","type":"User","site_admin":false},"labels":[{"id":806338690,"node_id":"MDU6TGFiZWw4MDYzMzg2OTA=","url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-24T23:19:05Z","updated_at":"2018-07-25T20:15:51Z","closed_at":null,"author_association":"NONE","body":"I have a URL like /Nodes(AgentID='123')...if it looks familiar its because its from the DSC PullServer.\r\n\r\nCurrently you can only match whole \"parts\" unless the part is marked as variable i.e. is has a : at the start.\r\n\r\nWould it be an option to change the IsMatch method to use regex matching or something in order to match a route similar to /Nodes(AgentID=':agentid{\\d+}').\r\n\r\nI am open to suggestions and maybe I missed something when going through the code here. However,  I'm pretty sure this isn't workable today.\r\n\r\nThanks for the help and suggestions."},"comment":{"url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/comments/407881032","html_url":"https://github.com/ironmansoftware/universal-dashboard/issues/283#issuecomment-407881032","issue_url":"https://api.github.com/repos/ironmansoftware/universal-dashboard/issues/283","id":407881032,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzg4MTAzMg==","user":{"login":"rdbartram","id":16256546,"node_id":"MDQ6VXNlcjE2MjU2NTQ2","avatar_url":"https://avatars0.githubusercontent.com/u/16256546?v=4","gravatar_id":"","url":"https://api.github.com/users/rdbartram","html_url":"https://github.com/rdbartram","followers_url":"https://api.github.com/users/rdbartram/followers","following_url":"https://api.github.com/users/rdbartram/following{/other_user}","gists_url":"https://api.github.com/users/rdbartram/gists{/gist_id}","starred_url":"https://api.github.com/users/rdbartram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdbartram/subscriptions","organizations_url":"https://api.github.com/users/rdbartram/orgs","repos_url":"https://api.github.com/users/rdbartram/repos","events_url":"https://api.github.com/users/rdbartram/events{/privacy}","received_events_url":"https://api.github.com/users/rdbartram/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T20:15:51Z","updated_at":"2018-07-25T20:15:51Z","author_association":"NONE","body":"I like the idea, I sort of tried to borrow from it in my example above.\r\n\r\nWould your idea be to keep the route maps as they currently are and introduce logic into the generic api actions that implement the URL Matcher or would you rather somehow try to dynamically create actions with route maps for each udendpoint?"}}
{"actor":{"display_login":"rdbartram"}}