Created
May 11, 2019 01:52
-
-
Save sujaybhowmick/2a0065ed58faeed4a5e2ee5214bd4800 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
openapi: "3.0.0" | |
info: | |
version: 1.0.3 | |
title: Sentifi API Authentication and Authorization | |
description: | | |
Sentifi API Authentication and Authorization | |
servers: | |
- url: https://apis.sentifi.com/v1/oauth | |
description: OAuth Url to retrieve the token | |
tags: | |
- name: OAuth Token | |
description: OAuth API | |
paths: | |
'/token': | |
post: | |
tags: | |
- OAuth Token | |
summary: Get OAuth token to access the API | |
description: | | |
Use **https://apis.sentifi.com/v1/oauth to get a OAuth token | |
parameters: | |
- name: Authorization | |
in: header | |
description: some description | |
schema: | |
type: string | |
requestBody: | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
grant_type: | |
type: string | |
enum: ['password'] | |
username: | |
type: string | |
password: | |
type: string | |
responses: | |
'200': | |
description: OK | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
scope: | |
type: string | |
organization: | |
type: string | |
access_token: | |
type: string | |
token_type: | |
type: string | |
enum: ['bearer'] | |
expired_in: | |
type: number | |
format: int64 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment