Contains all $resource for API. Submodule added in each new manager v6.
$ bower install ovh-api-services --save
$ npm install ovh-api-services --save
- Add Angular dependency "ovh-api-services"
- Load files via wiredep, or manually
This will also download the dependencies.
All services must return a $resource. For each $resource, you can call whether:
Lexi
: for APIv6Erika
: for APIv7 (see ovh-angular-apiv7 library)Aapi
: for 2API
For example, for the service Me, use Me.Lexi().get()
, to get user informations.
If you want the sshKeys of the user, use Me.Lexi().SshKey().get()
.
The files structure is then:
api
me
sshKey
me-sshKey.service.js
me-sshKey.lexi.js
me.service.js
me.lexi.js
The directories structure must follow the structure of the API.
You've developed a new cool feature ? Fixed an annoying bug ? We'd be happy to hear from you !
Have a look in CONTRIBUTING.md
$ npm test
- Contribute: https://github.com/ovh-ux/ovh-api-services/blob/master/CONTRIBUTING.md
- Report bugs: https://github.com/ovh-ux/ovh-api-services/issues
- Get latest version: https://github.com/ovh-ux/ovh-api-services
See https://github.com/ovh-ux/ovh-api-services/blob/master/LICENSE.md