Skip to content

Instantly share code, notes, and snippets.

@sujaybhowmick
Created May 11, 2019 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sujaybhowmick/2a0065ed58faeed4a5e2ee5214bd4800 to your computer and use it in GitHub Desktop.
Save sujaybhowmick/2a0065ed58faeed4a5e2ee5214bd4800 to your computer and use it in GitHub Desktop.
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