Commit Graph

40 Commits

Author SHA1 Message Date
Saturnino Abril
28c218db3b Implementation endpoint of APIv4: GET /files/{file_id}/thumbnail (#5553)
* APIv4: GET /files/{file_id}/thumbnail

* added delay time
2017-02-28 22:18:36 -03:00
Andrei Stanciu
25b9b7d26b ApiV4: GET /users/{user_id}/teams/unread (#5539) 2017-02-28 15:47:30 +00:00
Saturnino Abril
66c5f7a31c Implementation of APIv4: POST users/{user_id}/image (#5537)
* APIv4: POST users/{user_id}/image

* removed 'return' and rebased to master
2017-02-28 08:11:55 -05:00
Andrei Stanciu
6ff350380b ApiV4: PUT /posts/{post_id} (#5521) 2017-02-28 09:34:32 +00:00
Ruzette Tanyag
cef5028cbe Implemented preferences endpoints for apiv4 (#5531)
* implemented preferences endpoints for apiv4

* added user id in preferences endpoints
2017-02-28 09:14:16 +00:00
Andrei Stanciu
45edfbe719 Get all teams api4 (#5542) 2017-02-28 08:41:38 +00:00
Saturnino Abril
71d010b7af APIv4: GET /users/{user_id}/image (#5526) 2017-02-27 09:25:28 -05:00
Carlos Tadeu Panato Junior
7fc5dc236a add implementation for verify email for apiv4 (#5502) 2017-02-24 08:27:47 -05:00
Joram Wilander
ace228c4e5 Implement GET /posts/{post_id}/files/info endpoint for APIv4 (#5519) 2017-02-24 11:15:13 +00:00
Saturnino Abril
fff0b2bd86 APIv4: GET /teams/{team_id}/members (#5460)
* APIv4: GET /teams/{team_id}/members

* removed unecessary comment

* changed route to session required, and logout test to unauthorized

Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
2017-02-22 18:55:31 -05:00
Joram Wilander
69cac604e0 Implement create and get incoming webhook endpoints for APIv4 (#5407)
* Implement POST /hooks/incoming endpoint for APIv4

* Implement GET /hooks/incoming endpoint for APIv4

* Updates per feedback
2017-02-21 19:42:34 -05:00
Ruzette Tanyag
9646bddd21 Implement posts endpoints for APIv4 (#5480)
* Implement delete post endpoint for apiv4

* Implement POST search post endpoint for APIv4

* removed delete post quotes

* rearrange formatting
2017-02-21 07:36:52 -05:00
Saturnino Abril
a14e44b4ec Implement endpoint for APIv4: PUT /teams/{team_id}/members/{user_id}/roles (#5471) 2017-02-21 12:13:26 +00:00
Saturnino Abril
5c19d9be7f Implement endpoint for APIv4: GET /users/{user_id}/audits (#5472) 2017-02-21 12:07:57 +00:00
Joram Wilander
a5f8bdd3a0 Various APIv4 fixes (#5474) 2017-02-20 15:35:02 -05:00
Joram Wilander
dd4d8440ea Implement a few channel member endpoints for APIv4 (#5444)
* Implement POST /channels/members/{user_id}/view endpoint for APIv4

* Implement PUT /channels/{channel_id}/members/{user_id}/roles endpoint for APIv4

* Implement DELETE /channels/{channel_id}/members/{user_id} endpoint for APIv4
2017-02-20 13:31:52 -03:00
Saturnino Abril
623560481b Implementation endpoint for APIv4: GET /teams/name/{name} (#5473)
* APIv4: GET /teams/name/{name}

Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>

* reorganized test with SystemAdminClient

Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
2017-02-20 13:27:57 -03:00
Saturnino Abril
00d11e961f Implement GET teams/{team_id}/stats - apiv4 (#5453)
* api4 GET teams/{team_id}/stats

* api4 GET teams/{team_id}/stats

* moved TeamStats router to team.go
2017-02-17 15:50:17 -05:00
Joram Wilander
91fe8bb2c0 Implement upload and get file endpoints for APIv4 (#5396)
* Implement POST /files endpoint for APIv4

* Implement GET /files/{file_id} endpoint for APIv4
2017-02-17 10:31:21 -05:00
Ruzette Tanyag
4e7dbc3bb0 Implement user sessions endpoints for APIv4 (#5449)
* added get session and revoke session endpoints, unittests and drivers

* removed BasicUser2 and added teardown

* added badrequest unit test case for sessions

* added session loop to check if user id and session user id matches

* fixed indentation issues for user_test

* match indentation from spaces to tabs
2017-02-17 10:31:01 -05:00
Robin Naundorf
48b785aded Add APIv4 /system/ping endpoint (#5443) 2017-02-17 10:57:19 +00:00
Joram Wilander
f87d42916f Implement PUT /users/{user_id}/patch endpoint for APIv4 (#5418) 2017-02-16 09:46:55 -05:00
Ruzette Tanyag
28aa7cdbf2 Implement GET channels endpoints for APIv4 (#5363)
* implement get channels endpoints and updated drivers and unittests

* removed channel deletion on tear down, removed manage permission on get channels endpoints, and updated utils to add constant channel length

* added constants for user, team and channel length, updated context to use the model functions

* make sure team name length should be less than the minimum length and revert underscore to team name validity

* changed post test condition from notfound to unauthorized
2017-02-14 10:28:08 -05:00
Joram Wilander
e4effd0c15 Implement some post endpoints for APIv4 (#5353)
* Implement POST /posts endpoint for APIv4

* Implement GET /channels/{channel_id}/posts endpoint for APIv4

* Implement GET /posts/{post_id} endpoint for APIv4

* Implement GET /posts/{post_id}/thread endpoint for APIv4

* Skip team get if it's a DM channel in handlePostEvents
2017-02-13 10:52:50 -05:00
Ruzette Tanyag
0162d8ad08 Implement GET /users/username/{username} endpoint for APIv4 (#5310)
* added get user by username endpoint

* added get user by username unit test and driver

* changed username length to 22 characters max

* changed Params to UserName to Username

* reorganized get user by username and get user by email formatting in model/client4
2017-02-08 02:00:16 -08:00
Joram Wilander
5462f0119e Implement a few channel member endpoints for APIv4 (#5304)
* Implement GET /channels/{channel_id}/members

* Implement GET /channels/{channel_id}/members/{user_id} endpoint for APIv4

* Implement /users/{user_id}/teams/{team_id}/channels/members endpoint for APIv4

* Fix unit test
2017-02-07 14:58:27 -08:00
Joram Wilander
eb767d2c1c Implement password reset endpoints for APIv4 (#5256) 2017-02-07 10:46:40 -08:00
Joram Wilander
9dc76c1823 Implement PUT /users/{user_id}/password endpoint for APIv4 (#5243) 2017-02-07 09:35:58 -08:00
Joram Wilander
ba18374bd1 Implement a few team endpoints for APIv4 (#5296)
* Implement GET /teams/{team_id} endpoint for APIv4

* Implement GET /users/{user_id}/teams endpoint for APIv4

* Implement GET /teams/{team_id}/members/{user_id} endpoint for APIv4
2017-02-07 08:57:41 -08:00
Ruzette Tanyag
d91fea6518 Implement GET /users/email/{email} endpoint for APIv4 (#5309)
* added get user by email endpoint for APIv4

* added get user by email endpoint unit test and driver

* removed the appended return of user ids on logout

* Added RequireEmail to validate user email. Also updated the get user by email endpoint and unit test
2017-02-07 11:54:07 -05:00
Ruzette Tanyag
fc43bf0581 Implement DELETE /users/{user_id endpoint for APIv4 - rebase cleanup (#5307)
* added delete user endpoint

* added unit test for delete user endpoint

* added delete user driver
2017-02-05 09:20:17 -08:00
Joram Wilander
7ff2aef7fa Implement GET /users endpoint for APIv4 (#5277) 2017-02-03 15:17:34 -05:00
Joram Wilander
9312469ad5 Implement POST /channels/direct endpoint for APIv4 (#5283) 2017-02-03 10:27:12 -05:00
Joram Wilander
ccb0343828 Implement POST /users/ids endpoint for APIv4 (#5274) 2017-02-03 09:30:57 -05:00
Joram Wilander
365514174e Add tear down to APIv4 tests (#5250)
* Add tear down to APIv4 tests

* Defer tear downs
2017-02-02 11:46:42 -05:00
Joram Wilander
609d4f43d9 Implement POST /channels endpoint for APIv4 (#5241) 2017-02-02 09:04:36 -05:00
Joram Wilander
36f43edba3 Implement PUT /users/{user_id}/roles endpoint for APIv4 (#5238) 2017-02-01 16:13:16 -05:00
Joram Wilander
0bc0a467a4 Improve APIv4 test lib (#5237) 2017-01-31 09:31:53 -05:00
Joram Wilander
7431050b42 Implement POST /teams endpoint (#5220) 2017-01-31 07:59:36 -05:00
Joram Wilander
c01d9ad6cf Implement APIv4 infrastructure (#5191)
* Implement APIv4 infrastructure

* Update parameter requirement functions per feedback
2017-01-30 08:30:02 -05:00