I’m relatively new to services in java (coming from a C# background) and have been struggling to make sense of it all. I was wondering if someone could help me
- Create a simple web service with a single method which takes in a string passed in the POST body (representing the contents of a fairly large text file) and returns a transformed version of that string.
- Deploy said service to a mac web server.
Anything simple, easy to follow, and functional would be greatly appreciated. Thanks.
You can try dropwizard
You can build a simple example following their documentation.
It has everything you need to create a simple REST service:
Jetty (Embedded application server)
Jackson (Java objects – Json)
Jersey (implementation for building web services)