Gitlab: create new user via API - 404 -


i trying create new user using gitlab api v3.

gitlab api docs: https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/users.md#user-creation

i sending post request mygitlabhost/api/v3/users/ required data: email=losddsd@gmail.com&password=33wrwsdfsf3&username=testone&name=fuuu , returns me 404. acutally can list users via request mygitlabhost/api/v3/users/ api seems running.

request details: http://imm.io/120o6

what wrong?

note issue 3411 "unable add users team" has workaround in place for:

  • apache
    add /etc/apache2/sites-available/default
    proxypass http://127.0.0.1:8085/gitlab/api   proxypassreverse http://127.0.0.1:8085/gitlab/api  
  • nginx
 location /api {   proxy_set_header   x-forwarded-proto $scheme;   proxy_set_header   host              $http_host;   proxy_set_header   x-real-ip         $remote_addr;   proxy_pass http://gitlab-sock/gitlab/api;   proxy_redirect default; } 

to fix problem can modify file: app/assets/javascripts/api.js.coffee match setup.

in our case path has gitlab prefix:

users_path: "/gitlab/api/:version/users.json" user_path: "/gitlab/api/:version/users/:id.json" notes_path: "/gitlab/api/:version/projects/:id/notes.json" 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -