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

Make default token.isQuery to true and token name to 'token' #1

Open
giulioprinaricotti opened this issue Jan 2, 2017 · 0 comments

Comments

@giulioprinaricotti
Copy link
Owner

Everytime we generate the API from generator/api.json the function Dandelion.prototype.setToken is set as:

Dandelion.prototype.setToken = function(value,headerOrQueryName,isQuery) {
   this.token.value = value;
   this.token.headerOrQueryName = headerOrQueryName;
   this.token.isQuery = isQuery;
};

As the latter two parameters are always fixed, we should find a way to specify this using the api.json file.

Dandelion.prototype.setToken = function(value) {
   this.token.value = value;
   this.token.headerOrQueryName = 'token';
   this.token.isQuery = true;
};

It seems that this is not having any effect:

"securityDefinitions": {
        "api_key": {
            "type": "apiKey",
            "name": "token",
            "in": "query"
        }
    },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant