Last active
January 30, 2019 09:20
-
-
Save dayvough/4eab13ae298f88fab437c68e72ac2610 to your computer and use it in GitHub Desktop.
Fetch Order via API
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
Fetch Order via API | |
Auth | |
200 -> xport | |
xport | |
200 -> xpost | |
xpost | |
404 -> Auth |
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 input(input_string) { | |
return $('div', `Input:`, code(input_string)); | |
} | |
function output(output_string) { | |
return $('div', `Output:`, code(output_string)); | |
} | |
function code(code_string) { | |
return $('code', {style: {backgroundColor: "grey", color: "white", paddingTop: "10px", paddingBottom: "10px"}}, | |
line_break(), line_break(), | |
code_string); | |
} | |
function line_break() { return $('br'); } | |
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
let input_string = `{ id: 1, name: 'Bo Beep' }`; | |
let output_string = `{ message: success, code: 200 }`; | |
return $("code", | |
input(input_string), | |
line_break(), | |
output(output_string)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment