Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a new API (Balance Addition) #1460

Open
habibshahid opened this issue Jul 10, 2020 · 2 comments
Open

How to create a new API (Balance Addition) #1460

habibshahid opened this issue Jul 10, 2020 · 2 comments
Labels
* artemis * IvozProvider 2.x Artemis Release +question Question web/rest Rest API

Comments

@habibshahid
Copy link

I wanted to ask how to add a new API in swagger. We want to have balance addition control via API. Please guide

@Kaian Kaian added * artemis * IvozProvider 2.x Artemis Release +question Question web/rest Rest API labels Jul 15, 2020
@mmadariaga
Copy link
Contributor

HI @habibshahid,

Please use provided issue template ir order to make a feature request or it'll be automatically closed next time. You can use the mailing list otherwise.

About your question, I'd suggest you to check out any PR implementing a similar feature, #1160 for instance.

Within the controller you'll need to use the services below:

  • library/Ivoz/Provider/Domain/Service/Company/IncrementBalance.php
  • library/Ivoz/Provider/Domain/Service/Company/DecrementBalance.php
  • library/Ivoz/Provider/Domain/Service/Carrier/IncrementBalance.php
  • library/Ivoz/Provider/Domain/Service/Carrier/DecrementBalance.php

Let us know whether you are willing to implement it yourself and do a PR or not, it will certainly be interesting to have it in the API.

Regards

@habibshahid
Copy link
Author

habibshahid commented Jul 27, 2020

Thank you for the response. I have implemented the API locally and would love to contribute it to the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
* artemis * IvozProvider 2.x Artemis Release +question Question web/rest Rest API
Development

No branches or pull requests

3 participants