box / box-openapi

OpenAPI 3.0 Specification for the Box APIs
https://developer.box.com
Apache License 2.0
93 stars 93 forks source link

Wrong base url in "upload file" endpoint #417

Open codal-mdesai opened 2 months ago

codal-mdesai commented 2 months ago

Description of the issue

Incorrect base url mapped for CURL example For Upload File and all upload endpoints where base url should be "https://upload.box.com" instead of "https://api.box.com"

Current content

curl -i -X POST "https://api.box.com/2.0/files/content" \ -H "authorization: Bearer " \ -H "content-type: multipart/form-data" \ -F attributes='{"name":"Contract.pdf", "parent":{"id":"11446498"}}' \ -F file=@

Expected content

curl -i -X POST "https://upload.box.com/api/2.0/files/content" \ -H "authorization: Bearer " \ -H "content-type: multipart/form-data" \ -F attributes='{"name":"Contract.pdf", "parent":{"id":"11446498"}}' \ -F file=@

Link to the documentation page

https://developer.box.com/reference/post-files-content/

bszwarc commented 5 days ago

Thank you for pointing this one out - we have fixed it.

codal-mdesai commented 5 days ago

image unfortunately I am still seeing this issue

bszwarc commented 5 days ago

It should be fine now: https://developer.box.com/reference/post-files-content/ - we were waiting for the build to finish :D