Skip to content

requiredfield/centrice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Centrice

Mirror Domain Distribution Central Service

API

1. GET site domains by rank and status
      GET /domains/$site/?status=up&rank=0   or RESTful
      GET /domains/$site/up
      Params:
        site: The site id, required
        rank: The domain rank, default is 0, i.e. public, higher rank requires higher authority.
        status: The accessible status, default is up,i.e. not blocked.
                Enum(up|down)

      Output:
        Domain list seperated by line feed char


2. PUT /domains/$site/
    Body:up=a.example.com,b.example.com&down=x.example.com
    Params:
      site: The site ID
      up: up domain split by comma or space
      down: down domain split by comma or space

Installation

Clone this repository.

cd src;
pip install -r requirements.txt;
touch  settings_local.py;
python app.py;

About

Mirror Domain Distribution Central Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%