Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
/ jxrest Public archive

Simple, lightweight Java REST framework

License

Notifications You must be signed in to change notification settings

michaelliao/jxrest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

jxrest is a simple, lightweight framework to enable really fast development of JSON-based REST API.

Let's see how simple to write a REST API:

import com.itranswarp.jxrest.GET
import com.itranswarp.jxrest.Path

class MyRestApi {
    @GET
    @Path("/hello/:name")
    String hello(String name) {
        return "Hello, " + name + "!";
    }
}

That's all! jxrest convert your method to a REST API by simply add two annotations:

  • @GET: Indicate this is a GET request;
  • @Path: The API request path, variables can be included.

Using built-in RestApiFilter or RestApiServlet to deploy your API to a JavaEE-compatible server. Please check documentation for more information.

About

Simple, lightweight Java REST framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages