Simple README Mock for the Bookstore API
*** REQUEST ***
GET /books
Accept: application/json| <html> | |
| <head> | |
| <style type="text/css"> | |
| body { | |
| font-family: sans-serif; | |
| } | |
| table.aspects { | |
| margin: 3em; | |
| padding: 1em; |
| /************************************************ | |
| 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 |
| <?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> |
| { "store": { | |
| "book": [ | |
| { "category": "reference", | |
| "author": "Nigel Rees", | |
| "title": "Sayings of the Century", | |
| "price": 8.95 | |
| }, | |
| { "category": "fiction", | |
| "author": "Evelyn Waugh", | |
| "title": "Sword of Honour", |
| // *********************************************** | |
| // 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) |
| var jobInterface(args) { | |
| function init(args) {} | |
| function stateRead(args) {} | |
| function stateWrite(args) {} | |
| function JobStart(args) {} | |
| function JobCancel(args) {} | |
| function JobRestart(args) {} | |
| function JobRevert(args) {} | |
| } |