• Stars
    star
    408
  • Rank 105,946 (Top 3 %)
  • Language
    Java
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A light restful server built on netty. If you are preparing for leaning java or netty, it's a nice gift for you.

netty-restful-server

Build Status

A light and high performance restful server built on netty. If you are preparing for leaning java or netty, it's a nice gift for you.

Preview

project demo can be visited here:

1 . get user info

GET http://netty.restful.api.mengkang.net/user/1

2 . get user album info

GET http://netty.restful.api.mengkang.net/user/1/album/10?build=103

Version 1.1.0 (2016.01.07)

In this version,there is no database, so you can run it directly.

At first, java 8 should be supported in your server.

There's two way to run it.

1 . Run net.mengkang.demo.ServerLauncher in Intellij IDEA, Then you can visit

http://localhost:8080/user/1

http://localhost:8080/user/1/album/10?build=103

in your browser for testing.

2 . Anther way is using java command line.

Download the netty-restful-server-1.1.0.zip and unzip it , then run it like this:

java -Dfile.encoding=UTF-8 -jar netty-restful-server-1.0-SNAPSHOT.jar