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:
- 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)
- For adding image to the newly created listing, you have to query the whole listing with the listing_id again
- 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.
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:
Suggestion:
Change Create and Destroy API to using listing_id, then it will work for both scenario.