Closed MarneeDear closed 5 years ago
Possibly related to issue #160 .
DELETE requests to a path with an id doesn't parse the id.
id
DELETE to http://saturn.local:8085/delete/11 In the controller delete function the id is delete/11, but it should be 11
delete/11
11
I used Controller.Sample to repro this in a forked branch here: https://github.com/MarneeDear/Saturn/blob/delete-path-parse/sample/Controller.Sample/Controller.Sample.fs#L82
I suspect this is why I get a 404 when the id type is int instead of string in issue #160
int
I am seeing the same problem with getf. See Controller.Sample in my fork here:
getf
https://github.com/MarneeDear/Saturn/blob/delete-path-parse/sample/Controller.Sample/Controller.Sample.fs#L84
Using dotnet on Windows 10 Saturn master branch as of 12/23/2018 at 10pm MDT
Can anyone repro this?
This should be fixed by #168.
Possibly related to issue #160 .
DELETE requests to a path with an
id
doesn't parse theid
.For example
DELETE to http://saturn.local:8085/delete/11 In the controller delete function the
id
isdelete/11
, but it should be11
I used Controller.Sample to repro this in a forked branch here: https://github.com/MarneeDear/Saturn/blob/delete-path-parse/sample/Controller.Sample/Controller.Sample.fs#L82
I suspect this is why I get a 404 when the
id
type isint
instead of string in issue #160Update
I am seeing the same problem with
getf
. See Controller.Sample in my fork here:https://github.com/MarneeDear/Saturn/blob/delete-path-parse/sample/Controller.Sample/Controller.Sample.fs#L84
Other details
Using dotnet on Windows 10 Saturn master branch as of 12/23/2018 at 10pm MDT