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

GET /r/:XXXXXXXX #2

Open
nazanin-bayati opened this issue Feb 4, 2021 · 0 comments
Open

GET /r/:XXXXXXXX #2

nazanin-bayati opened this issue Feb 4, 2021 · 0 comments
Labels
302 Temporary Redirect 400 Bad Request 403 Forbidden 404 Not Found

Comments

@nazanin-bayati
Copy link

nazanin-bayati commented Feb 4, 2021

As a user, I want to get redirected to my previously determined page by hash id.

Given hash id,
When verb is GET,
Then get redirected to original URL.

When hash id is not found,
Then raise Not Found .

When hash id is not given,
Then raise Forbidden.

When 'hash id' length is too long or too short (refer to #1),
Then raise Bad Request.

When hash id is invalid,
Then raise Bad Request.

@pylover pylover added 400 Bad Request 403 Forbidden labels Feb 4, 2021
@nazanin-bayati nazanin-bayati removed the 403 Forbidden label Feb 4, 2021
@pylover pylover added 403 Forbidden 302 Temporary Redirect 404 Not Found labels Feb 4, 2021
@nazanin-bayati nazanin-bayati changed the title GET /r GET /r/:XXXXXXXX Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
302 Temporary Redirect 400 Bad Request 403 Forbidden 404 Not Found
Projects
None yet
Development

No branches or pull requests

2 participants