This file contains hidden or 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
| files.readFile 3 ms (3) | |
| files.exists 1 ms (4) | |
| files.writeFileAtomically.....................................2,958 ms (2) | |
| ├─ files.writeFile 2,953 ms (2) | |
| └─ files.rename 5 ms (2) | |
| Rebuild App.................................................102,326 ms (1) | |
| ├─ compiler.compile(the app)....................................142 ms (1) | |
| │ └─ compileUnibuild (the app).................................142 ms (2) | |
| │ ├─ files.readdir 19 ms (126) | |
| │ ├─ files.stat 9 ms (813) |
This file contains hidden or 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
{ | |
"port": "4010", | |
"forwardHost": null, | |
"basePath": null, | |
"log": false, | |
"logLocation": "https://api.stoplight.io/v1", | |
"debug": true, | |
"mock": { | |
"enabled": false, |
This file contains hidden or 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
{ | |
"swagger": "2.0", | |
"host": "myapi.com", | |
"schemes": ["http"], | |
"info": {}, | |
"paths": {}, | |
"definitions": {}, | |
"x-stoplight": { | |
"beforeScript": "function(ctx, request) {}", | |
"afterScript": "function(ctx, request, response) { // messages contain any warnings or errors var messages = response.validate(); var isValid = response.valid.get(); // Set a header here, so that your testing tools can throw errors appropriately if (isValid) { response.header.set('Validation', 'Passed'); } else { response.header.set('Validation', 'Failed'); } }", |
This file contains hidden or 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
{ | |
"swagger": "2.0", | |
"schemes": [ | |
"http" | |
], | |
"basePath": "/api", | |
"host": "localhost:3000", | |
"info": { | |
"version": "", |
This file contains hidden or 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
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "1.0", | |
"title": "To-do Demo", | |
"description": "## Welcome\n\nThis is a place to put general notes and extra information, for internal use.\n\nTo get started designing/documenting this API, select a version on the left." | |
}, | |
"host": "todos.stoplight.io", | |
"schemes": [ | |
"http" |
This file contains hidden or 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
{ | |
"name": "Retweet Stoplight's latest tweet", | |
"description": "This scenario will grab the latest Stoplight tweet, and retweet it. The twitter API requires that requests be authenticated with oauth1. Before you can run this scenario, you must fill out the variables below.\n\n1. Create a new app at [https://apps.twitter.com](https://apps.twitter.com). No callback url needed.\n2. Navigate to the keys and access tokens tab of your app (see screenshot), and copy paste the tokens and secrets below.\n3. Click run scenario above!\n\n", | |
"steps": [ | |
{ | |
"functions": [ | |
{ | |
"name": "Get latest tweet", | |
"input": { | |
"authorization": { |
This file contains hidden or 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
{ | |
"name": "Random Github Gist", | |
"steps": [ | |
{ | |
"functions": [ | |
{ | |
"name": "List gists and save random id", | |
"input": { | |
"request": { | |
"method": "get", |
This file contains hidden or 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
{ | |
"steps": [ | |
{ | |
"functions": [ | |
{ | |
"input": { | |
"request": { | |
"postData": { | |
"text": "{\n \"foo\": \"bar\"\n}" | |
}, |
This file contains hidden or 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
swagger: '2.0' | |
info: | |
version: 0.2.0 | |
title: VMware Cello | |
description: RESTful API for VMware Cello User Service | |
termsOfService: 'https://github.com/vmware/cello/blob/master/LICENSE' | |
license: | |
name: Apache 2.0 | |
url: 'https://github.com/vmware/cello/blob/master/LICENSE' | |
contact: |
This file contains hidden or 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
--- | |
swagger: '2.0' | |
info: | |
version: '1.0' | |
title: To-do Demo | |
description: |- | |
## Welcome | |
This is a place to put general notes and extra information, for internal use. |