Commit Graph

47 Commits (ac43eab51f9ac0d4c4bcc6db2bbc9ce3dbb34b7b)

Author SHA1 Message Date
Unknwon ac43eab51f
Refactoring: rename Signed -> Logged 2017-04-06 23:48:49 -04:00
Unknwon d05395fe90
Refactoring: rename modules -> pkg
Reasons to change:

1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
2017-04-04 19:29:59 -04:00
Unknwon c441f8080e
api/repo: add endpoint to sync mirror () 2017-03-23 20:46:39 -04:00
Unknwon beee6e03b1
error: move ErrRepoNotExist -> errors.RepoNotExist 2017-03-23 14:27:34 -04:00
Unknwon 55a5ad5cdc
api/repo: fix incorrect permission values () 2017-03-18 16:44:40 -04:00
Unknwon 0ccd7c97ab
models: rename ErrUserNotExist -> errors.UserNotExist 2017-03-16 17:18:43 -04:00
Girish Sonawane b9bb4a62d6 api: make CORS work by handling preflight OPTIONS request ()
* make CORS work by handling preflight OPTIONS request

* Update api.go
2017-03-11 03:01:59 -05:00
Unknwon 3eb57370a6
api/repo: fix cannot reponse branch with slashes () 2017-03-10 23:37:25 -05:00
Unknwon 4f9c5981a9
refactoring: modules/auth/*_form.go -> modules/form 2017-02-27 22:45:35 -05:00
Unknwon b78e03934d
models/access: hasAccess only need userID not user object 2017-02-23 16:15:25 -05:00
Unknwon cd9b29ff3f
api: add list user and organization's repositories () 2017-02-18 23:37:16 -05:00
Kim "BKC" Carlbäcker b6fc35f637 Implement list/check/delete Repo Collaborator () 2017-02-14 18:45:08 -05:00
Kim "BKC" Carlbäcker 99d86c7175 Implement more issue-endpoints () 2017-02-12 19:42:28 -05:00
Dennis Chen c98aa0e895 api: display repository forks ()
Lists the forks of a repository at the /:user/:repo/forks endpoint.

Signed-off-by: Dennis Chen <barracks510@gmail.com>
2017-01-28 17:59:21 -05:00
Kim "BKC" Carlbäcker b2de3d71c5 More Issue-Comments API-endpoints ()
* ListAllInRepo & Delete Issue-Comments

* Moar data in issue-comments
2016-12-21 01:21:15 -05:00
Andrey Nering 9ac46fb983 Support Editorconfig on web editor 2016-08-30 20:30:47 -03:00
Iwan Budi Kusnanto 8dca9f95fa issues comment API : list, create, edit ()
add `since` query string support to list issue comment
2016-08-26 11:23:21 -07:00
Unknwon 0b273ac4d5 code cleanup 2016-08-24 16:05:56 -07:00
lstahlman 84b56c3c53 Additional API support for milestones () 2016-08-24 15:18:56 -07:00
Unknwon 2cb04db526 Fix 2016-08-11 15:29:39 -07:00
Robin Lambertz b6c14f8b21 Add AddCollaborator API Endpoint ()
* Add AddCollaborator API Endpoint

* Add optional Permission to AddCollaborator endpoint

* Use APIContext
2016-08-11 11:23:25 -07:00
Unknwon db3d393576 routers/api: rename handlers to be unexported 2016-08-04 17:08:01 -07:00
Unknwon 2f105f3979 completely disable builtin issue tracker when enable external tracker 2016-08-04 16:32:02 -07:00
Unknwon e7fd65f0cf better code structure and batch minor improvements 2016-08-03 11:51:22 -07:00
lstahlman 2eeb0ec9b0 Additional API support for labels ()
* Add API support for labels.

* Error handling for adding/replacing multiple issue labels

* Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions

* Additional code cleanup
2016-08-03 09:24:16 -07:00
Unknwon 1f2e173a74 Refactor User.Id to User.ID 2016-07-24 01:08:22 +08:00
Unknwon e63b2881b1 api: fix panic if anonymous user request admin API
Add sign in check before check user account level
2016-07-23 17:56:37 +08:00
Unknwon 5aa2bf86f4 Update locales and .gopmfile 2016-07-17 09:25:30 +08:00
Dennis Chen 5ff2dfb23e api: delete repository webhooks ()
Allows the deletion of a webhook from a repository at the
/:user/:repo/hooks/:id endpoint.

Solves drone/drone issue .

Signed-off-by: Dennis Chen <barracks510@gmail.com>
2016-07-17 08:08:38 +08:00
Unknwon d27ca649c7 api/admin: add/remove organization team repository 2016-04-04 19:41:34 -04:00
Unknwon b1d41cfa60 add admin APIs to add/remove a user from teams 2016-03-25 18:04:02 -04:00
Unknwon 90e93b1f3a Change list teams API to non-admin specific 2016-03-21 12:53:04 -04:00
Unknwon e6f927f61a api: admin list and create team under organization 2016-03-21 12:47:54 -04:00
Unknwon 9bd9ad4205 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to 
2016-03-13 23:20:22 -04:00
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext 2016-03-13 18:49:16 -04:00
Unknwon 514382e2eb Rename module: middleware -> context 2016-03-11 11:56:52 -05:00
Antoine GIRARD b7b30cd85e Corrections following recommendations 2016-01-28 20:51:19 +01:00
Antoine GIRARD c11c3b6c11 Near ready 2016-01-28 20:51:19 +01:00
Unknwon 4331d1d2a0 require token for list my orgs 2016-01-09 13:32:19 +08:00
Unknwon 03427fb005 fix 2016-01-08 08:49:03 +08:00
Unknwon a49af93faf APIs: Users Followers
- User profile un/follow
- List user's followers/following
2015-12-21 04:24:11 -08:00
Unknwon 1c9dd11ba7 API: admin create repo 2015-12-17 22:57:41 -05:00
Unknwon 9cd16c5b12 add organization APIs 2015-12-17 02:28:47 -05:00
Unknwon b117befc2b add user email APIs 2015-12-15 22:57:18 -05:00
Unknwon 978dc00305 APIs: admin users 2015-12-05 17:13:13 -05:00
Unknwon 942fd6be53 fix panic for 2015-12-04 17:20:23 -05:00
Unknwon 56dd430a10 refactor API routes and some work for 2015-12-04 17:16:42 -05:00