Contribution - MurhafSousli/ngx-wordpress GitHub Wiki

  1. Fork the repo
  2. Install dependencies npm install
  3. Build gulp build

This library needs to have testing files, who can help?

WpService Summary

    WpService
    ├── config 
    |    ├── baseUrl                       ** WordPress baseURL 
    |    ├── debug                         ** If enabled, Logs requested URL to the console
    |
    ├── collection()
    |    ├── endpoint(ep)
    |        ├── get(args?)                ** Get Collection of endpoint type.
    |        ├── more()                    ** Get Next page collection combined with any previous ones.
    |        ├── next()                    ** Get Next page collection.
    |        ├── prev()                    ** Get Prev page collection.
    |
    ├── model()
    |    ├── endpoint(ep)
    |        ├── get(id, args?)            ** Get Model by Id.
    |        ├── add(body)                 ** Add Model to WP.
    |        ├── update(id, body)          ** Update Model by Id.
    |        ├── delete(id)                ** Delete Model by Id.
    |
    ├── auth()
    |    ├── basic(username, password)     ** Basic authentication, returns loggedInUser.
    |    ├── cookies()                     ** Cookies authentication, returns loggedInUser.
    |    ├── logout()                      ** Removes authentication info from all requests.
    |    
    ├── photon()                           ** Get post(s) images using photon service. 
    |   ├── getImage(post, propName)
    |   ├── getByQuery(post, domain, photonArgs)