Last active
December 1, 2017 23:03
-
-
Save belohlavek/4c77894326cbb92a969d094d50e069b3 to your computer and use it in GitHub Desktop.
Untitled project
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
{ | |
"message": "Hello world!" | |
} |
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
import * from dw::http::Server | |
import * from dw::http::Client | |
--- | |
api({ | |
host: "localhost", | |
port: 8080 | |
}, { | |
"/test": { | |
GET: (request) -> { | |
body: { | |
name: "It works 2" | |
} | |
}, | |
POST: (request) -> { | |
body: { | |
//TODO: Remove as String | |
name: (request).body.name as String | |
}, | |
status: 302 | |
} | |
} | |
}) |
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
{ | |
"project": { | |
"name": "Untitled project", | |
"mainScript": "scripts/main.dwl", | |
"apiled": { | |
"deploymentId": "7938c0bb-d6a7-4774-b88b-f3112ac2c5fd", | |
"domain": "untitled-projectaaasd" | |
} | |
}, | |
"meta": { | |
"projectFileVersion": "0.1.0", | |
"creationDate": "12/01/2017" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment