Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

Cirice/ws-captcha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A webservice for creation and verification of captcha images

To start the webservice please do as follow:

1. ./manage.sh redis-start
2. ./manage.sh gunicorn-start
3. ./mange.sh nginx-start

Alternatively you can do the following:

- ./manage.sh start-all

To test the captcha webservice api use the following scripts

1. src/resources/client/get_captcha.sh # it should return

Endpoints

1. [https://localhost/api/captcha/1/generate](https://localhost/api/captcha/1/generate)
2. [https://localhost/api/captcha/2/generate](https://localhost/api/captcha/2/generate)
3. [https://localhost/api/captcha/1/verify?captcha_text={CAPTCHA_TEXT}](https://localhost/api/captcha/1/verify?captcha_text={CAPTCHA_TEXT})
4. [https://localhost/api/captcha/1/pass?client_token={CLIENT_TOKEN}](https://localhost/api/captcha/1/pass?client_token={CLIENT_TOKEN})
5.