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

actions, querystrings, and arrays #91

Open
ashic opened this issue Dec 16, 2017 · 0 comments
Open

actions, querystrings, and arrays #91

ashic opened this issue Dec 16, 2017 · 0 comments

Comments

@ashic
Copy link

ashic commented Dec 16, 2017

I have an endpoint that looks something like:

http://example.com?foo=1&foo=2&foo=3

This would pass 1, 2, and 3 for foo, and on the server side, it'd bind to an array named foo. What would be the recommended way to represent this as an action? Currently I have:

{
            "name": "something",
            "href": "/__api/something",
            "title": "Do something with foo parameters",
            "method": "GET",
            "fields": [
                {
                    "name": "foo",
                    "title": "List of foos",
                    "type": "text"
                }
            ]
}

But this feels off as there's nothing signalling that foo can be an array.

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

1 participant