From 7efc095582b51ef5e513b4076cb504ce35cefd68 Mon Sep 17 00:00:00 2001 From: mzabriskie Date: Tue, 3 Feb 2015 01:24:38 -0700 Subject: [PATCH] Adding examples --- example/index.html | 82 -------------------------- examples/README.md | 9 +++ examples/all/index.html | 44 ++++++++++++++ examples/get/index.html | 33 +++++++++++ {example => examples/get}/people.json | 0 examples/post/index.html | 45 ++++++++++++++ examples/transform-response/index.html | 44 ++++++++++++++ 7 files changed, 175 insertions(+), 82 deletions(-) delete mode 100644 example/index.html create mode 100644 examples/README.md create mode 100644 examples/all/index.html create mode 100644 examples/get/index.html rename {example => examples/get}/people.json (100%) create mode 100644 examples/post/index.html create mode 100644 examples/transform-response/index.html diff --git a/example/index.html b/example/index.html deleted file mode 100644 index cde7cece..00000000 --- a/example/index.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - axios - - - -

People

- - - - - - \ No newline at end of file diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 00000000..9654d2c6 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,9 @@ +# axios examples + +To run the examples: + +1. Clone this repo +2. Run `npm install` +3. Run `grunt build` +4. Run `http-server -p 3000` +5. Open http://localhost:3000/examples diff --git a/examples/all/index.html b/examples/all/index.html new file mode 100644 index 00000000..78eddf7b --- /dev/null +++ b/examples/all/index.html @@ -0,0 +1,44 @@ + + + + axios - all example + + + +

axios.all

+ +
+

User

+
+ +
+ +
+
+
+

Orgs

+ +
+ + + + + diff --git a/examples/get/index.html b/examples/get/index.html new file mode 100644 index 00000000..3760718e --- /dev/null +++ b/examples/get/index.html @@ -0,0 +1,33 @@ + + + + axios - get example + + + +

axios.get

+ + + + + + diff --git a/example/people.json b/examples/get/people.json similarity index 100% rename from example/people.json rename to examples/get/people.json diff --git a/examples/post/index.html b/examples/post/index.html new file mode 100644 index 00000000..d8d1de11 --- /dev/null +++ b/examples/post/index.html @@ -0,0 +1,45 @@ + + + + axios - post example + + + +

axios.post

+ +
+
+ + +
+
+ + +
+ +
+ +
+ + + + + diff --git a/examples/transform-response/index.html b/examples/transform-response/index.html new file mode 100644 index 00000000..d8c21307 --- /dev/null +++ b/examples/transform-response/index.html @@ -0,0 +1,44 @@ + + + + axios - transform response example + + + +

transformResponse

+ +
+ +
+
+ Created:
+ Updated: +
+
+ + + + +