Swagger with ServiceStack does not send elements to server on POST -
I have a simple session object that looks like this
[root (" / Session ", Summary =" Creates security session ", Notes =" Notes related to some sessions are here ")] Public Season sessions: Irrational & lt; Season sessions & gt; {{ApiMember (name = "domain name", description = "security domain", parameter type = "path", datatype = "string", isRequired = true}] public string domain name {get; Set; } [Apemail (name = "username", description = "user name", parameter type = "path", datatype = "string", iSaeFire = true)] public string user name {received; Set; } [Apemail (name = "password", description = "password", parameter type = "path", datatype = "string", iSaeFire = true)] public string password {get; Set; }} When I go to the UI swagger, I can see the element
However when I enter the element and now try it, then I see The request content has not been sent to the server
Do I have correctly configured my poco with parameters type = "path" or am I doing something else here? Please advise.
have I properly configured my poco with parameter type = "path" Or are I doing something else here? I do not think so. Configuring each of your session properties on the parameter type = 'path' suggests that you want a property / field with each path / url (documentation). If you want to use 'path', then you want to see your service stack route in such a way. [Route ("/ session / {DomainName} / {UserName} / {password}"] For me, 'query' or 'body' will be a better option.
Comments
Post a Comment