This is an old revision of the document!


Table of Contents

Rating

This section describes the API calls that belong to the rating endpoint.

Get All Maps

Request : /api/v1/rating/‹id›
Method : GET

Successful response :

{
    "status": "Ok",
    "data": {
        "avg_rating": float,
        "rating_one": integer,
        "rating_two": integer,
        "rating_three": integer,
        "rating_four": integer,
        "rating_five": integer
    }
}

Failed response :

{
    "status": "Error",
    "message": string
}

Get Map Details

Request : /api/v1/maps/‹id›
Method : POST

Data :

score: Integer // 1..5

Successful response :

{
    "status": "Ok",
    "data": "Rating processed successfully"
}

Failed response :

{
    "status": "Error",
    "message": string
}

apidocs/rating.1490689535.txt.gz · Last modified: 2018/08/22 - 16:10 (external edit)