First of all I apologize if this question is not relevant. It's not code at all, nor do I post any questions about code snippets.
I create this thread, because I need to create an EndPoint in java that receives POST and GET requests from a small software in kotlin. The problem I have is that I can't use MVC structure or frameworks so I can't use spring boot. I have been looking for information and have found that with java.net.URL and have seen some examples that both POST and GET requests can be received. What I intend to do is that my kotlin app updates and creates records in the DB, but I don't just want it to do it locally in a SQLITE DB, I need to do something different between DBs because my app will be able to update data from its account and those account data they can be viewed from a web application with Laravel and can also be modified.
Please, could someone guide me on how to do this?
UPDATE: this Endpoint will be installed in server, and received petition from app kotlin. My endpoint updated central DB, and wil updated my SQLITE db with user it´s logged. I can´t use web application... i need use my endpoint with java. I think that i can use java.net.URL
but never use it.
Thank you and regards