Also have to mention that Swagger has issues atm with accessing non-https servers, at least in Chrome:
Mixed Content: The page at ‘Swagger Editor’ was loaded over HTTPS, but requested an insecure resource ‘http://localhost:8099/api/convertII/55’. This request has been blocked; the content must be served over HTTPS.
[ApiMethod(HttpApiPath = “verpersona/{value}{Item}”, HttpApiMethod = ApiRequestMethod.Post)]
public Persona verpersona(int value, Persona Item)
{
return Item;
}
and from “editor.swagger” generate the client a couple of times correctly
then do something wrong … I do not know what
and it does not let me generate the client.
Errors
Semantic error at paths./verpersona/{value}{Item}
Declared path parameter “Item” needs to be defined as a path parameter at either the path or operation level
Jump to line 25
Semantic error at paths./verpersona/{value}{Item}.post.parameters[1]
Operation parameters must have unique ‘name’ + ‘in’ properties
Jump to line 33
Schema error at paths[’/verpersona/{value}{Item}’].post.parameters[1]
should NOT have additional properties
additionalProperty: $ref, name, in, required
Jump to line 33
Schema error at paths[’/verpersona/{value}{Item}’].post.parameters[1].in
should be equal to one of the allowed values
allowedValues: body, header, formData, query
Jump to line 34
Semantic error at paths./verpersona/{value}{Item}.post.parameters.1.$ref
1 $refs cannot match any of the following: “#/definitions”, “#/responses”
Jump to line 36 server.txt (1.7 KB)