JonSnow1337 / simple-java-json-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:GNU General Public License v3.0


Languages

Language:Java 98.6%Language:HTML 1.4%