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
{ | |
"file_name": "b1caa622-eefd-537d-8c91-081aed3c9dda.json" | |
} |
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
curl --request POST \ | |
--url http://localhost:3000/save \ | |
--header 'Content-Type: application/json' \ | |
--data '{\n "title": "Save Directly to S3",\n "task": "Save form data as JSON on S3"}' |
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
'use strict'; | |
const AWS = require ('aws-sdk'); | |
const UUID_v5 = require('uuid/v5'); | |
const nameSpace = "my.namespace.com"; | |
module.exports.save = async (event, context) => { | |
const s3 = new AWS.S3(); | |
// Generate a random name |
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
# Save Directly to S3 -- serverless.yml | |
service: css-s3-test # NOTE: update this with your service name | |
plugins: | |
- serverless-offline | |
custom: | |
bucket: your-s3-bucket-name-here | |
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
/* Code for "Postman to Wiki" at https://medium.com/@sreedharc/postman-to-wiki-e7d31c76db57 */ | |
@import url('https://fonts.googleapis.com/css?family=Merriweather|Merriweather+Sans|Muli'); | |
.wiki-content h1 { | |
font-family: "Merriweather"; | |
font-size: 36px; | |
font-weight: regular; | |
color: #3ebb3e; | |
line-height: 1.5; |
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
# See "Postman to Wiki" at https://medium.com/@sreedharc/postman-to-wiki-e7d31c76db57 for more information | |
# Generates Markdown for Confluence Wiki from a given Collection file exported from Postman per Collections 2.1 schema | |
# Change working_dir and input_file to suit, then run it | |
import json | |
from operator import itemgetter | |
from itertools import groupby | |
# A postman collection, in Postman 2.1 format |