Skip to content

Commit 3dd974c

Browse files
committed
Merge branch 'release/2.0.0-rc1'
2 parents 4746a46 + f9da855 commit 3dd974c

40 files changed

+899
-653
lines changed

Copyright.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{pkg.name}
2+
---
3+
{pkg.description}
4+
@version: v{pkg.version}
5+
@author: {pkg.author}
6+
@link: {pkg.homepage}
7+
@license: {pkg.license}

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,30 @@ AngularJS services to consume [WP-API v2](http://v2.wp-api.org/)
77

88
<http://shprink.github.io/wp-api-angularjs/>
99

10+
## Installation
11+
12+
### npm
13+
14+
```
15+
npm install wp-api-angularjs
16+
```
17+
18+
then import the dist file
19+
20+
```
21+
# ES5
22+
require('wp-api-angularjs');
23+
24+
# or ES6
25+
import 'wp-api-angularjs';
26+
```
27+
28+
### Bower
29+
30+
```
31+
bower install shprink/wp-api-angularjs
32+
```
33+
1034
## Authentication
1135

1236
This library only supports basic auth. OAuth1 not being suitable for JS clients (it would mean exposing key and password out of the open)

bower.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "wp-api-angularjs",
3+
"version": "2.0.0-rc1",
4+
"description": "WordPress WP-API v2 client for AngularJs",
5+
"main": [
6+
"dist/wp-api-angularjs.js"
7+
],
8+
"authors": [
9+
"shprink <[email protected]>"
10+
],
11+
"license": "MIT",
12+
"homepage": "https://github.com/shprink/wp-api-angularjs",
13+
"private": false
14+
}

config.dist.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
{
22
"baseUrl": "http://sandbox.YourDomain.com/wp-json",
33
"basic": {
4+
"enabled": false,
45
"login": null,
56
"password": null
67
},
8+
"customMethods": {
9+
"entityName": {
10+
"getList": [{
11+
"per_page": 1
12+
}],
13+
"get": [295]
14+
}
15+
},
716
"postsMethods": {
817
"getList": [{
918
"per_page": 1

0 commit comments

Comments
 (0)