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

Image API #92

Open
zhaoguoyuan opened this issue Dec 20, 2014 · 1 comment
Open

Image API #92

zhaoguoyuan opened this issue Dec 20, 2014 · 1 comment

Comments

@zhaoguoyuan
Copy link
Contributor

Create and Destroy of Image API, require a listing as parameter, but actually it only need a listing_id.

If start with a existing listing, it is fine, but think about the following scenario:

  1. Create a new listing then the API won't return a listing, it only return the listing_id(with current API when this issue raising)
  2. For adding image to the newly created listing, you have to query the whole listing with the listing_id again
  3. Then using the Create Image API to add image

Suggestion:
Change Create and Destroy API to using listing_id, then it will work for both scenario.

@kytrinyx
Copy link
Collaborator

Yes, this would be better.

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

2 participants