Skip to content

kubikvest/api

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •