Answer the question
In order to leave comments, you need to log in
How to make a simple REST API server?
Good present, friends.
My task is to make a simple RESTful server. It is necessary that on POST it saves the transmitted data to a database or file, and on GET it returns data from the table according to the key being sent.
I know Java, but I was told that on node.js or django this is done in 15 lines. Tried to figure it out, but it doesn't work. Tell me, please, where can I see an accessible explanation, so that it would be without unnecessary difficulties.
Many thanks in advance for your advice.
Answer the question
In order to leave comments, you need to log in
Use spark or analogues, it is also done there in 15 lines
Chrome spark I recommend ratpack.io - there are both for Java and for groovy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question