docs: Document user presence endpoint.

This commit is contained in:
Josiah Philipsen 2017-05-22 15:31:19 -07:00 committed by Tim Abbott
parent 0b88957d12
commit df7eaa8868
1 changed files with 35 additions and 0 deletions

View File

@ -281,6 +281,41 @@ paths:
schema: schema:
$ref: '#/definitions/ErrorModel' $ref: '#/definitions/ErrorModel'
/users/{user}/presence:
get:
description: Get presence data for another user.
operationId: getPresence
produces:
- application/json
parameters:
- name: user
in: path
description: Enter email address
required: true
type: string
security:
- basicAuth: []
responses:
'200':
description: The response from a successful call
schema:
type: object
required:
- msg
- result
- presence
properties:
msg:
type: string
result:
type: string
presence:
type: array
default:
description: Unexpected error
schema:
$ref: '#/definitions/ErrorModel'
#################### ####################
# Shared definitions # Shared definitions
definitions: definitions: