Giter Site home page Giter Site logo

ok-api-documentation's Introduction

Odnoklassniki API

В репозитории находятся описания открытых REST-методов Одноклассники API, теперь у внешних разработчиков также есть возможность дополнить/поправить документацию.

Найти файл с описанием нужного метода можно по пути: docs/method/<ЯЗЫК>/<КАТЕГОРИЯ_МЕТОДА>/<ИМЯ_МЕТОДА>.md

Пример содержимого файла:

users.getCurrentUser

$description
Получение информации о текущем пользователе

$params#fields
Список запрашиваемых полей

$additional
дополнительная информация

В каркасе документации метода уже есть список параметров и его название, остается только сделать описание. Для форматирования текста используется Markdown.

Для ссылки из одного метода на другой можно воспользоваться тегом replace_method. Например:

{% replace_method users.getCurrentUser %}

После редактирования документации на метод, создается pull request, и кто-нибудь из команды API Одноклассников его просматривает и сливает с основной веткой. Внутренняя (репозиторий в Одноклассниках) версия документации и внешняя (репозиторий на GitHub) синхронизируются периодически для поддержания актуальности.

Odnoklassniki API

This repository contains descriptions for public REST-methods in Odnoklassniki API. Now external developers also have the possibility to add/improve documentation.

Find the desired file with the description of the method can be on the path: docs/method//<METHOD_CATEGORY>/<METHOD_NAME>.md

An example of the file contents:

users.getCurrentUser

$description
Getting information about the current user

$params#fields
List of requested fields

$additional
additional information

The framework of the method documentation already contains a list of parameters and its name, we can only make the description. To format the text, use the Markdown.

To link from one method to another, you can use the tag replace_method. For example:

{% replace_method users.getCurrentUser %}

After editing the documentation creates pull request and someone from Odnoklassniki API team looks it and merges with the main branch. Internal (repository in Odnoklassniki) version of the documentation and external (on the GitHub repository) synchronized periodically to maintain relevance. 0Looking

ok-api-documentation's People

Contributors

kohver avatar odnoklassniki-api avatar thefilin avatar tonyspb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.