-
Notifications
You must be signed in to change notification settings - Fork 20
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
Ability to choose content type; upload files? #27
Comments
Yes, that would be better, but since the discovery doesn't give us informations on how we should send each args, they are sent as GET parameters. It looks like the API accepts the parameters no matter how you send them, so we could rely on the method and use GET parameters only for GET endpoints. Also about the different options on how to serialize the parameters on the body, I think to simplify we should force a format (maybe json) and if we detect files on the parameters we switch to multipart? |
Maybe I'm missing something but I think there is no information about the file arguments on the discovery results? I tried to look at |
Yes, this is true, and that seems fine to me.
No strong preference here, it just seems like kind of a nice enhancement to be able to pick the request format. The only reason I can think of this being "useful" rather than just "cool" is that it would let you look for bugs in handling of different data types:
Yes, this is true. In v1 there are a couple of endpoints that accept files. In v2,
Want to create a core Trac ticket to add Otherwise, we can add a special case in the console for the endpoints that accept media files. I think I have started to discuss too many things on this issue 😄 all of this except for #29 is definitely enhancements and not required before we ship this new version of the console. |
It looks like they are sent as GET parameters instead:
@southp found that this is causing "HTTP 414 - Request - URI Too Long" when posting lots of content to a comment, for example.
Ideally we could also choose the request format between a few different options:
The text was updated successfully, but these errors were encountered: