{"id":1250,"date":"2024-05-14T14:12:59","date_gmt":"2024-05-14T13:12:59","guid":{"rendered":"https:\/\/blog.c-hase.de\/?p=1250"},"modified":"2024-05-14T14:13:59","modified_gmt":"2024-05-14T13:13:59","slug":"c-get-parameter-slash-erlauben","status":"publish","type":"post","link":"http:\/\/blog.c-hase.de\/?p=1250","title":{"rendered":"c# get parameter slash erlauben"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Um einen slash als parameter zu akzeptieren gibt es die M\u00f6glichkeit ihn als letzten Parameter mit {*paramname} anzugeben.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> &#91;HttpGet, Route(\"formular\/{*data?}\")] \n public System.Net.Http.HttpResponseMessage Formular(string data = null)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">w\u00fcrde data als optionalen Parameter auch Daten wie asdfasdf\/asdfasdf annehmen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/stackoverflow.com\/posts\/30972578\/timeline\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I know you can apply a wildcard in the route attribute to allow <code>\/<\/code> such as date input for example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Route(\"orders\/{*orderdate}\")]\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Um einen slash als parameter zu akzeptieren gibt es die M\u00f6glichkeit ihn als letzten Parameter mit {*paramname} anzugeben. w\u00fcrde data als optionalen Parameter auch Daten wie asdfasdf\/asdfasdf annehmen. I know you can apply a wildcard in the route attribute to &hellip; <a href=\"http:\/\/blog.c-hase.de\/?p=1250\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1250","post","type-post","status-publish","format-standard","hentry","category-c"],"_links":{"self":[{"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/posts\/1250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1250"}],"version-history":[{"count":2,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/posts\/1250\/revisions"}],"predecessor-version":[{"id":1252,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=\/wp\/v2\/posts\/1250\/revisions\/1252"}],"wp:attachment":[{"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1250"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.c-hase.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}