Skip to content

snigle/ovh-api-services

 
 

Repository files navigation

ovh-api-services

OVH component

NPM

Maintenance Chat on gitter

Contains all $resource for API.

Table of contents

Installation

Download module with bower

$ bower install ovh-api-services --save

Download module with NPM

$ npm install ovh-api-services --save
  • Add Angular dependency "ovh-api-services"
  • Load files via wiredep, or manually

This will also download the dependencies.

Usage

All services must return a $resource. For each $resource, you can call whether:

For example, for the service Me, use OvhApiMe.Lexi().get(), to get user informations.

If you want the sshKeys of the user, use OvhApiMe.Lexi().SshKey().get().

The files structure is then:

.
└── me
    ├── sshKey
    │   ├── me-sshKey.service.js
    │   └── me-sshKey.lexi.service.js
    ├── me.service.js
    └── me.lexi.service.js

The directories structure must follow the structure of the API.

Contributing

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

Run the tests

$ npm test

Related links

License

See https://github.com/ovh-ux/ovh-api-services/blob/master/LICENSE

About

Contains all angular $resource for OVH API

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.6%
  • Makefile 0.4%