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.

Revisions

  1. emoran revised this gist Jul 18, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion oauth2schemeAPI
    Original file line number Diff line number Diff line change
    @@ -29,4 +29,4 @@ securitySchemes:
    200:
    body:
    application/json:
    examples: {"test":"success"}
    examples: [{"Id":"34234324","Name":"Product1"}]
  2. emoran created this gist Jul 18, 2024.
    32 changes: 32 additions & 0 deletions oauth2schemeAPI
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    #%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: {"test":"success"}