Last active
February 20, 2019 15:03
-
-
Save dudelis/c314a9da3b1528b55d6c72cd26787394 to your computer and use it in GitHub Desktop.
MS Graph Swagger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "v1", | |
"title": "Microsoft Graph Example" | |
}, | |
"host": "graph.windows.net", | |
"schemes": [ "https"], | |
"produces": [ "application/json" ], | |
"paths": { | |
"/v1.0/me": { | |
"get": { | |
"tags": [ | |
"Me" | |
], | |
"operationId": "Me", | |
"produces": [ | |
"text/json", | |
"application/json" | |
], | |
"parameters": [], | |
"responses": { | |
"200": { | |
"description": "OK", | |
"schema": { | |
"$ref": "#/definitions/GraphUser" | |
} | |
} | |
} | |
} | |
}, | |
"/v1.0/users/{userid}": { | |
"get": { | |
"tags": [ | |
"LoadUser" | |
], | |
"operationId": "LoadUser", | |
"produces": [ | |
"application/json" | |
], | |
"parameters": [{ | |
"name": "userid", | |
"in": "path", | |
"required": true, | |
"type": "string" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"schema": { | |
"$ref": "#/definitions/GraphUser" | |
} | |
} | |
} | |
} | |
}, | |
"/v1.0/users": { | |
"get": { | |
"tags": [ | |
"ListUsers" | |
], | |
"operationId": "ListUsers", | |
"consumes": [], | |
"produces": [ | |
"application/json" | |
], | |
"parameters": [], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"schema": { | |
"$ref": "#/definitions/GraphUserArray" | |
} | |
} | |
} | |
} | |
} | |
}, | |
"definitions": { | |
"GraphUser": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"accountEnabled": { | |
"type": "boolean" | |
}, | |
"city": { | |
"type": "string" | |
}, | |
"companyName": { | |
"type": "string" | |
}, | |
"country": { | |
"type": "string" | |
}, | |
"department": { | |
"type": "string" | |
}, | |
"displayName": { | |
"type": "string" | |
}, | |
"givenName": { | |
"type": "string" | |
}, | |
"jobTitle": { | |
"type": "string" | |
}, | |
"mail": { | |
"type": "string" | |
}, | |
"mailNickname": { | |
"type": "string" | |
}, | |
"mobilePhone": { | |
"type": "string" | |
}, | |
"onPremisesImmutableId": { | |
"type": "string" | |
}, | |
"onPremisesLastSyncDateTime": { | |
"type": "string" | |
}, | |
"onPremisesSecurityIdentifier": { | |
"type": "string" | |
}, | |
"onPremisesSyncEnabled": { | |
"type": "boolean" | |
}, | |
"passwordPolicies": { | |
"type": "string" | |
}, | |
"officeLocation": { | |
"type": "string" | |
}, | |
"postalCode": { | |
"type": "string" | |
}, | |
"preferredLanguage": { | |
"type": "string" | |
}, | |
"state": { | |
"type": "string" | |
}, | |
"streetAddress": { | |
"type": "string" | |
}, | |
"surname": { | |
"type": "string" | |
}, | |
"usageLocation": { | |
"type": "string" | |
}, | |
"userPrincipalName": { | |
"type": "string" | |
}, | |
"userType": { | |
"type": "string" | |
}, | |
"aboutMe": { | |
"type": "string" | |
}, | |
"birthday": { | |
"type": "string" | |
}, | |
"hireDate": { | |
"type": "string" | |
}, | |
"mySite": { | |
"type": "string" | |
}, | |
"preferredName": { | |
"type": "string" | |
}, | |
"Email": { | |
"type": "string" | |
} | |
} | |
}, | |
"GraphUserArray": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/GraphUser" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment