/simple-java-json-server

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

simple-java-json-server

Explanation

This is a simple web server, it receives json data in this format


{
	"method": "add",
	"person": {
		"name": "Jakov",
		"age": "25"
	}
}

Then it adds the person object to the list of the server. You can also send a get method to receive all persons.

Usage

  1. Download java 8
  2. Run Server.java
  3. Run Client.java (or send a request manually)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request