Skip to content

Add User definition #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion swagger.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
swagger: '2.0'
info:
version: 0.1.0
version: 0.2.0
title: Netlify's API definition
securityDefinitions:
netlifyAuth:
Expand Down Expand Up @@ -1238,6 +1238,21 @@ paths:
default:
$ref: "#/responses/error"
# end submission

# begin users
/user:
get:
operationId: getCurrentUser
responses:
'200':
description: OK
schema:
type: array
items:
$ref: "#/definitions/user"
default:
$ref: "#/responses/error"
# end users
definitions:
site:
type: object
Expand Down Expand Up @@ -1934,6 +1949,42 @@ definitions:
type: string
ssl_url:
type: string
user:
type: object
properties:
id:
type: string
uid:
type: string
full_name:
type: string
avatar_url:
type: string
email:
type: string
affiliate_id:
type: string
site_count:
type: integer
format: int64
created_at:
type: string
format: dateTime
last_login:
type: string
format: dateTime
login_providers:
type: array
items:
type: string
onboarding_progress:
type: object
properties:
slides:
type: string
support_priority:
type: integer
format: int64
error:
type: object
required:
Expand Down