GithubHelp home page GithubHelp logo

chronolabs-cooperative / screening-api-php Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 0.0 15.25 MB

Toxicology Screening Selection (Rest API) 2.1.2

Home Page: http://screening.snails.email

License: GNU General Public License v3.0

PHP 89.56% HTML 0.15% CSS 10.08% JavaScript 0.21%
screening drugs toxicology api rest-api rest random seeding api-server api-rest api-service

screening-api-php's Introduction

Chronolabs Cooperative presents

Toxicology Screening REST API ~ http://screening.snails.email

Author: Simon Antony Roberts [email protected]

This REST API is for generating a toxicology selection randomly or on occassion co-ordinating via email toxicology screening like narcotic drugs for safety workers and heavy machine operators!

Mod Rewrite Short URL

You will need to have this in API_ROOT_PATH/.htaccess

#Forces SSL
#RewriteEngine On
#RewriteCond %{SERVER_PORT} !^443$
#RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L=301]

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^v1/([0-9]+)/([-+]?[0-9]*\.?[0-9]+)/([a-z]+).api?(.*?) ./index.php?selected=$1&seed=$2&output=$3&4 [L,NC,QSA]
RewriteRule ^v1/([0-9]+)/([-+]?[0-9]*\.?[0-9]+)/([a-z]+).api ./index.php?selected=$1&seed=$2&output=$3 [L,NC,QSA]
RewriteRule ^v1/([0-9]+)/([a-z]+).api?(.*?) ./index.php?selected=$1&output=$2&$3 [L,NC,QSA]
RewriteRule ^v1/([0-9]+)/([a-z]+).api ./index.php?selected=$1&output=$2 [L,NC,QSA]

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^v([0-9]+)/(.*?)/(form).api ./form.php?version=$1&hash=$2&output=$3 [L,NC,QSA]
RewriteRule ^v([0-9]+)/(.*?)/(callback).api ./callback.php?version=$1&hash=$2&output=$3 [L,NC,QSA]
RewriteRule ^v([0-9]+)/(.*?).png ./1x1.php?version=$1&hash=$2&output=1x1 [L,NC,QSA]
RewriteRule ^v([0-9]+)/([0-9]+)/([-+]?[0-9]*\.?[0-9]+)/([a-z]+).api?(.*?) ./index.php?version=$1&selected=$2&seed=$3&output=$4&$5 [L,NC,QSA]
RewriteRule ^v([0-9]+)/([0-9]+)/([-+]?[0-9]*\.?[0-9]+)/([a-z]+).api ./index.php?version=$1&selected=$2&seed=$3&output=$4 [L,NC,QSA]
RewriteRule ^v([0-9]+)/([0-9]+)/([a-z]+).api?(.*?) ./index.php?version=$1&selected=$2&output=$3&$4 [L,NC,QSA]
RewriteRule ^v([0-9]+)/([0-9]+)/([a-z]+).api ./index.php?version=$1&selected=$2&output=$3 [L,NC,QSA]

Enabling module rewrite with apache on ubuntu

Execute the following to enable .htacess and module URL rewritting

$ sudo a2enmod rewrite
$ sudo service apache2 restart

Installation

Copy the PHP file to your hosting spot, then run the install with your browser!

screening-api-php's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.