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: +
+
+ + + + +