New REST endpoint POST project to allowlist of CI_JOB_TOKEN
What does this MR do and why?
- This MR works towards the another task of the issue (feature) #351740 (closed)
Screenshots or screen recordings
New REST endpoint for allowlist of CI_JOB_TOKEN access settings
- GET "api/v4/projects/:id/job_token_scope/allowlist/inbound"
Further Notes:
- The response is paginated
- The response contains a list of projects (basic project object)
Changelog: added
How to set up and validate locally
curl --request PATCH \
--url http://127.0.0.1:3000/api/v4/projects/7/job_token_scope?private_token=<personal_access_token_of_project_maintainer> \
--header 'Content-Type: application/json' \
--data '{"target_project_id": <<id of project>>}'
TODO
-
Discuss the response of this endpoint what should it be? A link of basic project data?
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR. -
Changelog entry added, if necessary -
Documentation created/updated via this MR -
Documentation reviewed by technical writer or follow-up review issue created -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the javascript style guides -
Conforms to the database guides -
Wait for the following MRs to be merged: New REST endpoint GET allowlist of CI_JOB_TOKEN... (!118495 - merged) and New REST endpoint PATCH CI_JOB_TOKEN access set... (!118357 - merged)
Related to #351740 (closed)