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

I am looking for java file, where transactions can be done #1066

Closed
01mk027 opened this issue Feb 22, 2023 · 5 comments
Closed

I am looking for java file, where transactions can be done #1066

01mk027 opened this issue Feb 22, 2023 · 5 comments
Labels

Comments

@01mk027
Copy link

01mk027 commented Feb 22, 2023

Hi all;
I am currently trying to write a java file, which interacts with Steve's methods which will be triggered from outside. For example, if some authorized person make post request to http://127.0.0.1:8080/steve/api/v1/transactions15/datatransfer, i want to operate related transaction. i am looking for this puropose to files under service folder (it doesn't matter for OCPP 1.5 or OCPP1.6) , but i am not able to find exact file. Does anybody know how to be done?

@juherr
Copy link
Contributor

juherr commented Feb 22, 2023

Hi,

What do you mean by "operate related transaction"? What is the purpose?

@01mk027
Copy link
Author

01mk027 commented Feb 22, 2023

when an admin enter to steve from the address of http://127.0.0.1:8080/steve/manager/home, and all transactions can be selected and done, in the address of http://127.0.0.1:8080/steve/manager/operations/v1.5/{transactionName} (e.g ChangeAvailability). i want to operate these transactions without signing in as admin via api. i don't want to rewrite all transactions, i want to use prepared methods of steve. from where i must start? thanks

@01mk027
Copy link
Author

01mk027 commented Feb 22, 2023

under service folder ChargePointService15_Client.java file exists, if i am right, some transactions can be done by importing this file and call some methods.
when a request is made to address of (for example: http://127.0.0.1:8080/steve/api/v1/transactions15/datatransfer15) i want to call dataTransfer method to transfer some data to SOAP client (station). But i ve got bunch of errors. i want to learn that, if i import ChargePointService15_Client.java to api, will i be successful? thanks

@01mk027
Copy link
Author

01mk027 commented Feb 22, 2023

@juherr

@goekay
Copy link
Member

goekay commented Feb 22, 2023

hey @01mk027, what you want to do would be part of the #1000. you want to expose the functionality as an API.

this is not as easy as you assume it to be. you can look at the rest controllers in de.rwth.idsg.steve.web.api as an inspiration and do something analogously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants