File tree 3 files changed +22
-98
lines changed
3 files changed +22
-98
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Captcha API
2
+
3
+ This project contains a simple Captcha API that returns an encoded image containing
4
+ letters a-Z and numbers 1-9 via a GET endpoint. The POST endpoint can be used to validate the
5
+ captcha.
6
+
7
+ A Dockerfile is provided for containerisation.
8
+
9
+ ## Running with Docker
10
+
11
+ Build the Docker image
12
+ ```
13
+ docker build . -t captcha-api
14
+ ```
15
+
16
+ Run the Docker image
17
+ ```
18
+ docker run -d --name captcha -p 8080:8080 -e CAPTCHA_API_CONFIG=config.py captcha-api
19
+ ```
20
+
21
+ Navigate to `` http://localhost:8080/swagger-ui ``
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def load_requirements():
20
20
name = "captcha-api" ,
21
21
version = "0.1.0" ,
22
22
description = "CERN CAPTCHA service" ,
23
- url = "https://gitlab.cern.ch/authzsvc/backends /captcha-api" ,
23
+ url = "https://github.com/CERN /captcha-api" ,
24
24
author = "MALT IAM team" ,
25
25
author_email = "authzsvc-admins@cern.ch" ,
26
26
classifiers = [
You can’t perform that action at this time.
0 commit comments