Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parameter type integer issue #208

Open
codezninja opened this issue Sep 18, 2014 · 2 comments
Open

parameter type integer issue #208

codezninja opened this issue Sep 18, 2014 · 2 comments

Comments

@codezninja
Copy link

So this could me totally having no idea what I'm doing. I've setup a basic method and one of my parameters is an optional integer. When nothing is set and a call is made the parameter gets added to the url as -1. Is there something I did wrong? Here's the json I have for the parameter

"WsAssetGET": {
          "name": "WsAsset",
          "description": "Returns asset/list of assets for a given param information, urls, thumbnail,reference file,associated files,captions,assocaited links and metadata.",
          "httpMethod": "GET",
          "protocol": "REST",
          "parameters": {
            "apiv": {
              "default": "5",
              "required": true,
              "type": "integer",
              "description": "The api version; only version 5 supported.",
              "location": "path"
            },
            "start": {
              "required": false,
              "type": "integer",
              "description": "Will return a subset of available assets. Used primarily for pagination. Default is set to 0"
            },
            "end": {
              "required": false,
              "type": "integer",
              "description": "Will return a subset of available assets. Used primarily for pagination. Default is set to start+20 Zero-based inclusive index: E.G. &start=0&send=4 will return five programs from the beginning."
            },
            "folder": {
              "required": false,
              "type": "integer",
              "description": "filter for folder id for a given account"
            },
          },
          "path": "/ws/ws_asset/apiv/{apiv}"
}

2014-09-18_1252

@phairow
Copy link
Contributor

phairow commented Oct 10, 2014

you are not doing anything wrong. this is a known bug with the form generator and should be fixed soon.

@chadicus
Copy link

Has this been fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants