Getting Homework Done
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
mashape
src
README.md
api.php
api.xml
config-example.php
database.sql

README.md

Homework API -- Getting Homework Done

DESCRIPTION

This API is an interface to order some homework to be done.

See the hosted version on Mashape : http://www.mashape.com/apis/Getting%20Homework%20Done

USAGE

POST request on /submitHomework with the parameter content containing the exercise will issue a job id. An notification email is sent to the API host with the id of the new homework.

You can check the status (pending or done) of the job with a GET request on /status/{id}.

You can get the solution of the exercise when the job is done with a GET request on /solution/{id}.

powered by mashape.com API Framework (http://www.mashape.com/)

INSTALLATION

  • Edit config-example.php into config.php by filling out the parameters
  • Edit api-example.php into api.php by changing the baseUrl
  • If you are behind Nginx and you can not use Apache url rewriting, add the line try_files $uri /api.php; to the nginx configuration.