Skip to content

Use HTTP protocol properly #514

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

Closed
5 tasks done
php-coder opened this issue Dec 14, 2016 · 0 comments
Closed
5 tasks done

Use HTTP protocol properly #514

php-coder opened this issue Dec 14, 2016 · 0 comments
Assignees
Milestone

Comments

@php-coder
Copy link
Owner

php-coder commented Dec 14, 2016

  • We have to change URLs to describe resources, other parameters should go to a query part:
    • /account/activate/key/{key} -> /account/activate?key={key}
    • /series/add/category/{slug} -> /series/add?category={slug}
    • /series/add/country/{slug} -> /series/add?country={slug}
  • "Search by catalog" form should use GET method instead of POST because it doesn't change state
  • We should return 403 error code instead of 401 for unauthenticated requests because 401 must have WWW-Authenticate header

Inspired by article (in Russian): https://habrahabr.ru/company/yandex/blog/265569/

@php-coder php-coder added this to the 0.4 milestone Dec 14, 2016
php-coder added a commit that referenced this issue Dec 27, 2016
…URL variable.

/account/activate/key/{key} -> /account/activate?key={key}

Addressed to #514

No functional changes.
php-coder added a commit that referenced this issue Dec 27, 2016
…of URL variable.

/series/add/category/{slug} -> /series/add?category={slug}
/series/add/country/{slug} -> /series/add?country={slug}

Now it's also possible to specify both category and country in URL:
/series/add?category={slug}&country={slug}

Addressed to #514

No functional changes.
php-coder added a commit that referenced this issue Dec 27, 2016
php-coder added a commit that referenced this issue Dec 27, 2016
Because 401 must have WWW-Authenticate header.

Addressed to #514

No functional changes.
@php-coder php-coder self-assigned this Dec 27, 2016
bodom91 pushed a commit to bodom91/mystamps that referenced this issue Aug 2, 2017
…URL variable.

/account/activate/key/{key} -> /account/activate?key={key}

Addressed to php-coder#514

No functional changes.
bodom91 pushed a commit to bodom91/mystamps that referenced this issue Aug 2, 2017
bodom91 pushed a commit to bodom91/mystamps that referenced this issue Aug 2, 2017
Because 401 must have WWW-Authenticate header.

Addressed to php-coder#514

No functional changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant