Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
fix(*): rename services to v6 and v7
Browse files Browse the repository at this point in the history
  • Loading branch information
antleblanc committed Apr 3, 2018
1 parent 4019c9f commit f7c227a
Show file tree
Hide file tree
Showing 652 changed files with 5,024 additions and 5,021 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [3.0.0] - 2018-04-03
- Rename Lexi to v6.
- Rename Erika to v7.

## [2.0.0] - 2017-08-29
- Every service has been prefixed by OvhApi.
- User service is now named as OvhApiMe (/me endpoint).
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ This will also download the dependencies.

All services must return a $resource.
For each $resource, you can call whether:
- `Lexi`: for APIv6
- `Erika`: for APIv7 (see [ovh-angular-apiv7 library](https://github.com/ovh-ux/ovh-angular-apiv7))
- `v6`: for APIv6
- `v7`: for APIv7 (see [ovh-angular-apiv7 library](https://github.com/ovh-ux/ovh-angular-apiv7))
- `Aapi`: for 2API

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

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

The files structure is then:
```sh
.
└── me
├── sshKey
│ ├── me-sshKey.service.js
│ └── me-sshKey.lexi.service.js
│ └── me-sshKey.v6.service.js
├── me.service.js
└── me.lexi.service.js
└── me.v6.service.js
```

The directories structure must follow the structure of the API.
Expand Down
Loading

0 comments on commit f7c227a

Please sign in to comment.