[PLT-7793] Added /users/tokens endpoint (#8038)

* Added /users/tokens/all endpoint

- UserAccessStore now has getAll method
- Added tests
- Added route
- Added handler

* Remove space fix check-style

* Remove blank space check-style

* Fixes for make check-style

* Remove extra code that is un-needed in user_test.go

* Rename endpoint + grammar

- Renamed /users/tokens/all to /users/tokens
- Renamed getUserAccessTokens to getUserAccessTokensForUser
- Renamed getAllUserAccessTokens to getUserAccessTokens
- Minor Grammar changes

* Add localization for sql_user_access_token.get_all

* Fix minor plural spelling
Этот коммит содержится в:
Adrian Carolli
2018-01-05 14:46:48 -05:00
коммит произвёл Joram Wilander
родитель 66bdf830b5
Коммит fd3fa8f8dc
9 изменённых файлов: 107 добавлений и 5 удалений

Просмотреть файл

@@ -6782,6 +6782,10 @@
"id": "store.sql_user_access_token.get_by_token.app_error",
"translation": "We couldn't get the personal access token by token"
},
{
"id": "store.sql_user_access_token.get_all.app_error",
"translation": "We couldn't get all personal access tokens"
},
{
"id": "store.sql_user_access_token.get_by_user.app_error",
"translation": "We couldn't get the personal access tokens by user"