Hi, I'm trying to get the git_hooks via the rest api of gitlab entreprise ( *gitlab-7.7.2_ee.omnibus.5.4.2.ci-1.el6.x86_64*) but it doesn't work.
This is what I get when I type that : $ curl -XGET -H "PRIVATE-TOKEN: <TOKEN>" "http://localhost/api/v3/projects/6/git_hooks" <!DOCTYPE html> <html> <head> <title>The page you were looking for doesn't exist (404)</title> <link href="/static.css" media="screen" rel="stylesheet" type="text/css" /> </head> <body> <h1>404</h1> <h3>The page you were looking for doesn't exist.</h3> <hr/> <p>You may have mistyped the address or the page may have moved.</p> </body> </html> This is the log : Started GET "/api/v3/projects/6/git_hooks" for 127.0.0.1 at 2015-10-01 18:16 :15 +0200 Processing by NamespacesController#show as */* Parameters: {"id"=>"api/v3/projects/6/git_hooks"} Namespace Load (0.5ms) SELECT "namespaces".* FROM "namespaces" WHERE "namespaces"."path" = 'api/v3/projects/6/git_hooks' LIMIT 1 Completed 404 Not Found in 4ms (Views: 0.6ms | ActiveRecord: 0.5ms) When I type the SQL query without the criteria, I found very strange the result : id | name | path | owner_id | created_at | updated_at | type | description | avatar | membership_lock ----+----------------------+----------------------+----------+----------------------------+----------------------------+-------+-------------+--------+----------------- 1 | root | root | 1 | 2015-09-23 09 :24:31.26212 | 2015-09-23 09:24:31.26212 | | | | f 3 | nova | nova | 1 | 2015-09-23 13 :49:40.210782 | 2015-09-23 13:49:40.210782 | Group | | | f 4 | prod-supervision | prod-supervision | 1 | 2015-09-23 13 :49:44.230943 | 2015-09-23 13:49:44.230943 | Group | | | f 5 | applications | applications | 1 | 2015-09-23 13 :49:51.582588 | 2015-09-23 13:49:51.582588 | Group | | | f 6 | em | em | 1 | 2015-09-23 13 :49:56.039179 | 2015-09-23 13:49:56.039179 | Group | | | f I don't understand the logic whole thing. When I use another REST API common with the community edition, others tables are used :-| Do I need to set a parameter in the /etc/gitlab/gitlab.rb to use the git_hook via the REST API ? Can you help me please ? Thank you ! Rasmey -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/f1f7b2a0-03c2-4d54-bb1b-f7cff1ba6aa2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.