Skip to content

Instantly share code, notes, and snippets.

{
"file_name": "b1caa622-eefd-537d-8c91-081aed3c9dda.json"
}
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"}'
'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
# 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
/* 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;
@sreesarma
sreesarma / postman2confluence.py
Last active September 19, 2022 06:57
Generate Wiki-formatted API Documentation from Postman Collections
# 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