c# - Path as a variable in attribute routing WebApi2 -




i trying use directory path variable (in urn) in attribute routing webapi2. attribute route looks following

    [httpdelete]     [route("api/directory/{dirpath}/content")]     public ihttpactionresult cleandirectory(string dirpath)     {         //required functionality     } 

so when want delete content in d:\somedir, use following url

    delete api/directory/d:\somedir/content 

but returns 404 not found. allowed use '\' or '/' in attribute routes ?





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -