Skip to content

Instantly share code, notes, and snippets.

@sebastianhenneberg
Created January 22, 2016 16:30
Show Gist options
  • Save sebastianhenneberg/49d516a19838b60463cf to your computer and use it in GitHub Desktop.
Save sebastianhenneberg/49d516a19838b60463cf to your computer and use it in GitHub Desktop.
Example API with RAML Step 8
#%RAML 1.0
title: Example API
protocols: HTTPS
version: v1
baseUri: https://example.com/api/{version}
mediaType: application/json
securitySchemes:
oauth1:
type: OAuth 1.0
settings:
requestTokenUri: https://example.com/oauth1/request_token
authorizationUri: https://example.com/oauth1/authorize
tokenCredentialsUri: https://example.com/oauth1/access_token
# types, traits and resourceTypes:
/users:
securedBy: oauth1
# all operations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment