Gallery_pic is app with a simple concept, Upload, Vote, Win!!! Users can upload pictures to several different categories, allow those pictures to be voted on, and at the end of each contest the users with the most votes in each category wins free cool prizes (Flat screen T.V's, Tablets, Smart Phones, and many more cool free prizes).
- Ruby version: 2.2.1
- Rails version: 4.2.5
- Server engine: Mysql2
Run rake doc:app
for classes and methods documentation.
Checkout Gemfile for dependencies.
The API in app uses 3 keys of authentication:
- access_token: used when a user successfully logs in through the API. This parameter is required for all API requests, except API endpoints for login, sign up, reset password and installation.
- installation_key: Used when a device/installation has been registered to Gallery_pic. This is required for login, sign up and reset password endpoints. Don't send this parameter if an access_token is available.
- api_key: This is used only for registering an installation. The API key is
fa8acaf23e85c71b5f261fb2016e2548
The API sends consistent response for success or errors.
For errors, it always sends error
object with code
for error code and message
for error message.
Error example:
{
"error":
{
"code": 401,
"message": "Error message"
}
}
For successful API request, it always sends data
object with either an object
or an array
with the requested data.
Succcess example:
{
"data": []
}
```# pic_gallery