You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
Steps to reproduce:
1.) Send a POST to create a new listing with the slug 'check-yo-self'.
2.) Send another POST to create a new listing with the slug 'check-yo-self'.
Observed Results:
The second post creates a listing that overwrites the one from the first post.
Expected Results:
On the second POST an error is returned saying 'That slug already exists' and the second listing is not saved.
Steps to reproduce:
1.) Send a POST to create a new listing with the slug 'hello-world'.
2.) Send a POST to create a new listing with the slug 'bye-world'.
3.) Update the 'bye-world' listing by sending a PUT with a slug of 'hello-world' and a currentSlug of 'bye-world'.
Observed Results:
The 'hello-world' listing is overwritten with the updated contents of the 'bye-world' listing.
Expected Results:
If you attempt to update the slug of a listing to a slug that already exists, an error is returned saying 'That slug already exists' and the listing is not saved.
The text was updated successfully, but these errors were encountered:
rmisio
changed the title
On a POST, the listing API overwrites an existing listing with that has the given slug.
On a POST, the listing API overwrites an existing listing that has the given slug.
Aug 31, 2016
rmisio
changed the title
On a POST, the listing API overwrites an existing listing that has the given slug.
The listing API overwrites an existing listing that has the given slug.
Sep 5, 2016
Scenario #1
Steps to reproduce:
1.) Send a POST to create a new listing with the slug 'check-yo-self'.
2.) Send another POST to create a new listing with the slug 'check-yo-self'.
Observed Results:
The second post creates a listing that overwrites the one from the first post.
Expected Results:
On the second POST an error is returned saying 'That slug already exists' and the second listing is not saved.
Scenario #2
Steps to reproduce:
1.) Send a POST to create a new listing with the slug 'hello-world'.
2.) Send a POST to create a new listing with the slug 'bye-world'.
3.) Update the 'bye-world' listing by sending a PUT with a slug of 'hello-world' and a currentSlug of 'bye-world'.
Observed Results:
The 'hello-world' listing is overwritten with the updated contents of the 'bye-world' listing.
Expected Results:
If you attempt to update the slug of a listing to a slug that already exists, an error is returned saying 'That slug already exists' and the listing is not saved.
The text was updated successfully, but these errors were encountered: