I am creating a web service with AWS EC2 and Elastic Beanstalk using Java Eclipse JEE and AWS Toolkit. I use the web service for the purpose of an iOS app using Xcode and Swift. I am using Cognito for user authentication of users using my iOS app.
I'm very new to all this. How would I get my web service to communicate with my iOS app? I think that is what AWS Gateway REST API is for, but I'm having trouble getting started with just learning about it. How would I get the web service to use the API from AWS Gateway REST API? How would I put together the methods in my web service such as the POST method and get it to work with AWS Gateway REST API? I can't seem to find documentation on this when I search the web. I'm not even sure if I need to use AWS Gateway REST API. If there is another way that doesn't require code on the web service for POST or GET or other REST methods, that would be great.
Can anyone help me get started with the right information?
This would be the POST method from a Java library that I would use, without any code inside it:
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {}