0
How to build CRUD Java api connect to php server?
Build a web server using php and use java to write api (using 2 computers: 1 computer with php server, 1 computer using java api hooking to the server must perform CRUD on database and two of them can't write with framework)
6 Respostas
0
Not sure I understood question correctly, but I'll try. You need to know api of application running on php server. How does it accept requests. After that you can write web request using REST or SOAP or whatever.
0
My teacher asked me to build a web server using php and use java to write api (using 2 computers: 1 computer with php server and 1 computer using java api hooking to the server must perform CRUD on database)
0
You can use REST. For Java side, you can create Spring Boot application. You can then use RestTemplate to map objects to json and send requests to server. Of course php side should be able to process requests to write objects to db.
0
Can you guide me in detail how to do that? Because I don't know anything about java and I am also quite weak in php.
0
Why such a mad task for beginner? This is not trivial even for experienced developer. I don't think it is possible with no knowledge of Java and Spring, but you can read something like this:
https://spring.io/guides/gs/consuming-rest
0
So be it! This is a test used to evaluate the ability of my teacher.