0

I want to make a RESTful API using Java, that can accept more than one parameter. The API should return some JSON data depending on what the client wants to see. Which is the best place I can start learning from? How is the data stored on the server -- is it inside a big JSON file or is it in a proper database?

1 Answer 1

1

Check out Spring Framework and the RestController.

https://spring.io/guides/gs/rest-service/

With Spring, you create POJO's and it automatically converts them to JSON for you. You can either build your POJO manually, or build it from a database using a framework like Spring Data.

Sign up to request clarification or add additional context in comments.

1 Comment

It looks good to start with. I will start working on it. Thank You

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.