Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 755 Bytes

follow.md

File metadata and controls

44 lines (35 loc) · 755 Bytes

#User.follow Mark one user as folowing other user

Supported request methods

  • POST

##Supported formats

  • json

##Arguments

###Requried

  • follower

    str follower email

  • followee

    str followee email

Requesting http://some.host.ru/db/api/user/follow/ with {"follower": "[email protected]", "followee": "[email protected]"}:

{
    "code": 0,
    "response": {
        "about": "hello im user1",
        "email": "[email protected]",
        "followers": [
            "[email protected]"
        ],
        "following": [
            "[email protected]"
        ],
        "id": 1,
        "isAnonymous": false,
        "name": "John",
        "subscriptions": [
            4
        ],
        "username": "user1"
    }
}