Skip to content

Latest commit

 

History

History
92 lines (84 loc) · 1.87 KB

README.md

File metadata and controls

92 lines (84 loc) · 1.87 KB

Api

CircleCI Travis-ci Build Status Scrutinizer Code Quality Scrutinizer Code Coverage Scrutinizer Build Status

API

Авторизация пользователя

ACTION: auth
METHOD: GET
QUERY: code
---
{
  "t":string,
  "links": [
    {"list_quest": "string"}
  ]
}

Получения списка квестов

ACTION: list-quest
METHOD: GET
QUERY: t
---
{
  "t":string,
  "quests": [
    {
      "quest_id": "string",
      "title": "string",
      "description": "string",
      "link": "string",
    }
  ]
}

Создание игры

ACTION: create-game
METHOD: POST
TYPE: application/json
BODY: t, quest_id

Получения текущего задания

ACTION: task
METHOD: GET
QUERY: t

Отметка точки

ACTION: checkpont
METHOD: POST
TYPE: application/json
BODY: t, lat, lon
---
{
  "t":"string",
  "quest":{
    "questId":"string",
    "title":"string",
    "description":"string",
    "points":[
      "string"
    ]
  },
  "point":{
    "pointId":"string",
    "title":"string",
    "description":"string"
  },
  "total_points": int,
  "finish": bool,
  "links":{
    "string":"string"
  }
}

Завершение игры

ACTION: finish
METHOD: POST
TYPE: application/json
BODY: t

License