Skip to content

Instantly share code, notes, and snippets.

View mamund's full-sized avatar

Mike Amundsen mamund

View GitHub Profile
@mamund
mamund / h-aspects.html
Created June 11, 2012 02:56
any advice on color/font tuning?
<html>
<head>
<style type="text/css">
body {
font-family: sans-serif;
}
table.aspects {
margin: 3em;
padding: 1em;
@mamund
mamund / setAuth0JWT.js
Last active November 27, 2023 14:42
auth0 JWT in Postman API Testing
/************************************************
Retrieve a JWT from Auth0 for Postman
2020-05-15 : @mamund @greatwebapis
NOTES:
1) create API definition in Auth0 with
"client_credential" (machine-to-machine)
2) pull the following from Auth0 API config:
- domain
@mamund
mamund / book-store.xml
Created August 4, 2023 15:29
Bookstore for XMLPath
<?xml version="1.0" encoding="UTF-8" ?>
<store>
<book>
<category>reference</category>
<author>Nigel Rees</author>
<title>Sayings of the Century</title>
<price>8.95</price>
</book>
<book>
<category>fiction</category>
@mamund
mamund / book-store.json
Created August 4, 2023 15:27
Bookstore data for JSONPATH
{ "store": {
"book": [
{ "category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95
},
{ "category": "fiction",
"author": "Evelyn Waugh",
"title": "Sword of Honour",
@mamund
mamund / loadUtils.js
Created May 20, 2020 19:15
Mike Amundsen's Postman Utilities
// ***********************************************
// Testing Utilities
// 2020-04 : @mamund
//
// NOTE:
// store in global variables
// load in Postman pre-request script block:
// var utils = eval(globals.loadUtils);
// use as needed:
// utils.checkStatus(200)
@mamund
mamund / code-interfaces.js
Last active July 21, 2022 00:28
prototype for a composable service
var jobInterface(args) {
function init(args) {}
function stateRead(args) {}
function stateWrite(args) {}
function JobStart(args) {}
function JobCancel(args) {}
function JobRestart(args) {}
function JobRevert(args) {}
}
@mamund
mamund / CWAD-46-README-Mocking-Bookstore-API.md
Created March 3, 2022 01:12
CWAD-46-README-Mocking-Bookstore-API

Bookstore README Mocking

Simple README Mock for the Bookstore API

listBooks()

*** REQUEST ***
GET /books
Accept: application/json
@mamund
mamund / bookstore-mock.md
Last active March 3, 2022 00:36
README Mocking

Bookstore README Mocking

listBooks()

*** REQUEST ***
GET /books
Accept: application/json

*** RESPONSE ***
200 OK

Shopping API Modeled Resources

Book

Property Name Description
title The book title
isbn The unique ISBN of the book
authors List of Book Author resources

Shopping API

  • Supports the book browsing experience and cart management
  • Scope: Public

Add Read/Write Traits

Place the read/write traits on the proper lines in the table below.

  • read (three lines)
  • write (three lines)