Corresponding ruby file for route /api/v4/jobs/request

Hi all,

I am trying to find the ruby method that gets called by url /api/v4/jobs/request

I tried to find it by executing “gitlab-rake grape:routes”, but this only gives me the method, url and description and it does not seem to live in /opt/gitlab/embedded/service/gitlab-rails/lib/api/jobs.rb.

Can someone please point me to the correct file and method?

TIA && have a nice day!


Just if someone else needs to do the same. To get the source files for all api urls edit /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/grape.rake and print

The corresponding source file for /api/v4/jobs/request is /opt/gitlab/embedded/service/gitlab-rails/lib/api/runner.rb:82