EmilShakirov/cetragram_api

View on GitHub
doc/api/v1/index.json

Summary

Maintainability
Test Coverage
{
"resources": [
{
"name": "Images",
"examples": [
{
"description": "Create image",
"link": "images/create_image.json",
"groups": "all"
},
{
"description": "List images",
"link": "images/list_images.json",
"groups": "all"
}
]
},
{
"name": "Errors",
"examples": [
{
"description": "Request to unexisting page",
"link": "errors/request_to_unexisting_page.json",
"groups": "all"
}
]
},
{
"name": "Ouath Users",
"examples": [
{
"description": "Create user from oauth data",
"link": "ouath_users/create_user_from_oauth_data.json",
"groups": "all"
}
]
},
{
"name": "Likes",
"examples": [
{
"description": "Like an image",
"link": "likes/like_an_image.json",
"groups": "all"
},
{
"description": "Unlike an image",
"link": "likes/unlike_an_image.json",
"groups": "all"
},
{
"description": "Unlike an image with non-existed id",
"link": "likes/unlike_an_image_with_non-existed_id.json",
"groups": "all"
}
]
},
{
"name": "Sessions",
"examples": [
{
"description": "Sign in with valid password",
"link": "sessions/sign_in_with_valid_password.json",
"groups": "all"
},
{
"description": "Sign in with invalid password",
"link": "sessions/sign_in_with_invalid_password.json",
"groups": "all"
}
]
}
]
}