This file contains 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
(function() { | |
'use strict'; | |
/** | |
* This monkey-patch for the dropdownService enables to nest dropdowns. | |
* Issue: https://github.com/angular-ui/bootstrap/issues/2421 | |
* PR: https://github.com/angular-ui/bootstrap/pull/3776 | |
*/ |
This file contains 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
#%RAML 1.0 | |
title: Example API | |
protocols: HTTPS | |
version: v1 | |
baseUri: https://example.com/api/{version} | |
mediaType: application/json |
This file contains 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
#%RAML 1.0 | |
title: Example API | |
protocols: HTTPS | |
version: v1 | |
baseUri: https://example.com/api/{version} | |
mediaType: application/json | |
/users: | |
get: | |
description: Get all users. |
This file contains 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
#%RAML 1.0 | |
title: Example API | |
protocols: HTTPS | |
version: v1 | |
baseUri: https://example.com/api/{version} | |
mediaType: application/json | |
types: | |
Gender: | |
type: string |
This file contains 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
# document root | |
types: | |
Gender: | |
type: string | |
enum: [ male, female ] | |
User: | |
properties: | |
id: integer | |
name: string |
This file contains 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
# document root | |
types: | |
Error: | |
properties: | |
code: integer | |
message: string | |
Gender: | |
type: string | |
enum: [ male, female ] |
This file contains 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
# document root and types | |
/users: | |
# get operation | |
post: | |
description: Create new user. | |
body: | |
type: UserBase | |
responses: | |
201: |
This file contains 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
# document root and types | |
traits: | |
BadRequest: | |
responses: | |
400: | |
description: Required properties missing or validation issues. | |
body: | |
type: Error |
This file contains 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
#%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: |
This file contains 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
# document root | |
types: | |
Error: !include types/error.raml | |
Gender: !include types/gender.raml | |
UserBase: !include types/userBase.raml | |
User: !include types/user.raml | |
Users: User[] | |
traits: |