Skip to content

Commit 06ed9cf

Browse files
authored
Merge pull request #94 from netlify/user
Add User definition
2 parents 1dad59b + 54bf6ee commit 06ed9cf

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

swagger.yml

+52-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
swagger: '2.0'
22
info:
3-
version: 0.1.0
3+
version: 0.2.0
44
title: Netlify's API definition
55
securityDefinitions:
66
netlifyAuth:
@@ -1238,6 +1238,21 @@ paths:
12381238
default:
12391239
$ref: "#/responses/error"
12401240
# end submission
1241+
1242+
# begin users
1243+
/user:
1244+
get:
1245+
operationId: getCurrentUser
1246+
responses:
1247+
'200':
1248+
description: OK
1249+
schema:
1250+
type: array
1251+
items:
1252+
$ref: "#/definitions/user"
1253+
default:
1254+
$ref: "#/responses/error"
1255+
# end users
12411256
definitions:
12421257
site:
12431258
type: object
@@ -1934,6 +1949,42 @@ definitions:
19341949
type: string
19351950
ssl_url:
19361951
type: string
1952+
user:
1953+
type: object
1954+
properties:
1955+
id:
1956+
type: string
1957+
uid:
1958+
type: string
1959+
full_name:
1960+
type: string
1961+
avatar_url:
1962+
type: string
1963+
email:
1964+
type: string
1965+
affiliate_id:
1966+
type: string
1967+
site_count:
1968+
type: integer
1969+
format: int64
1970+
created_at:
1971+
type: string
1972+
format: dateTime
1973+
last_login:
1974+
type: string
1975+
format: dateTime
1976+
login_providers:
1977+
type: array
1978+
items:
1979+
type: string
1980+
onboarding_progress:
1981+
type: object
1982+
properties:
1983+
slides:
1984+
type: string
1985+
support_priority:
1986+
type: integer
1987+
format: int64
19371988
error:
19381989
type: object
19391990
required:

0 commit comments

Comments
 (0)