Image Recognition API using tensorflow & deeplearning.
Resources | Protocol | Path | Parameter | Status code | Description |
---|---|---|---|---|---|
Register user |
POST | /register | username: String pw: String |
200 OK 301 User already exist |
Register a user |
Classify image | POST | /classify | username: String pw: String URL: String |
200 OK 301 Invalid user 302 Invalid password 303 Out of tokens |
Classify image |
Refill Tokens of user | POST | /refill | username: String admin_pw: String refillAmount: int |
200 OK 301 Invalid username 302 Invalid admin_password |
Increase/decrease the limit of tokens of user |
heroku.com/deploy
Body -> raw -> JSON
{
"username": "Hamza",
"password":"xyz",
"admin_pw":"abc123",
"refill":6,
"url": "https://upload.wikimedia.org/wikipedia/commons/e/e3/Plains_Zebra_Equus_quagga.jpg"
}
docker-compose build
docker-compose up