Skip to content

Instantly share code, notes, and snippets.

@emoran
Last active July 18, 2024 23:23
Show Gist options
  • Save emoran/c68a080128fdd1e1b721b7c53b478e7c to your computer and use it in GitHub Desktop.
Save emoran/c68a080128fdd1e1b721b7c53b478e7c to your computer and use it in GitHub Desktop.
oauth2schemeAPI
#%RAML 1.0
title: cool-system-api
securitySchemes:
oauth_2_0:
description: Mulesoft OAUTH 2
describedBy:
headers:
Authorization:
type: string
required: true
responses:
401:
description: Bad request
403:
description: Bad Oauth Request
type: OAuth 2.0
settings:
authorizationUri: http://moran-oauth-provider.us-e2.cloudhub.io/validate
accessTokenUri: http://moran-oauth-provider.us-e2.cloudhub.io/token
authorizationGrants: [client_credentials]
/products:
description: Get product List
displayName: Get Products
get:
securedBy: [oauth_2_0]
responses:
200:
body:
application/json:
examples: [{"Id":"34234324","Name":"Product1"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment