Skip to content

Add CAPTCHA to REST API

Chad Woolley requested to merge caw-captcha-rest-api-support into master

What does this MR do and why?

See details in issue: #352913 (closed)

Screenshots or screen recordings

See the Testing Notes Section in the CAPTCHA epic for example requests/responses.

REST API:

captcha_rest_api

GraphQL API:

captcha_graphql_api

How to set up and validate locally

See the Testing Notes Section in the CAPTCHA epic for examples and detailed instructions on how to do manual exploratory testing of spam and CAPTCHA via the web UI, REST API, and GraphQL API.

Documentation

The main point of this MR is to bring the REST API into feature and code parity with the GraphQL API with with respect to CAPTCHA, which is one of the tasks being performed by ~"group::editor" prior to handoff of the CAPTCHA support to the owner of the feature, ~"group::authentication and authorization". There is a placeholder task to add documentation for this new REST API functionality in the epic (https://gitlab.com/groups/gitlab-org/-/epics/5527#consistently-support-captcha-via-graphql-and-rest-api), but that can be appropriately prioritized by the group ~"group::authentication and authorization" relative to all other tasks in that epic.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Chad Woolley

Merge request reports

Loading