The Wayback Machine - https://web.archive.org/web/20180611160721/https://github.com/zhoumengkang/netty-restful-server
Skip to content
A light restful server built on netty. If you are preparing for leaning java or netty, it's a nice gift for you. http://mengkang.net/
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
script add a demo Jan 19, 2016
src/main 业务完善 Aug 4, 2016
.gitignore remove the config files Jan 3, 2016
.travis.yml update readme Jan 7, 2016
README.md update readme Jan 7, 2016
license.txt Create license.txt Feb 7, 2017
pom.xml add httpclient Jan 19, 2016

README.md

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.