Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Releases: bradcypert/Ginger

Patch && Put

16 Dec 00:29
Compare
Choose a tag to compare

This release adds rough support for Patch and Put. It's backwards compatible so feel free to bump your version number and go to town!

Feel free to open any issues you may have.

Performance Improvements, Better Interface

22 Sep 15:10
Compare
Choose a tag to compare

In this release, I've added performance improvements around the instance created by the Resource. This means you should be able to store, on the model, any properties and they should persist between routes - previously, this wasn't an option as each route hit created and recycled the instance object.

Additionally, the Model interface now makes use of Java8 default method implementations, so you only need to implement the ones that you're actually using. For example: If you're not specifying DELETE in your @Methods declaration, you no longer need to to implement public string remove();

1.1.0 Release Candidate#1

19 Sep 22:41
Compare
Choose a tag to compare

Added ability to specify a basepath for your API resource. For example...

Resource todos = new Resource(todos.class);
todos.setBasePath("/api/v1/");
todos.generateRoutes();

This will now give you /api/v1/todos/.

Release Candidate #1

19 Sep 22:31
Compare
Choose a tag to compare

#Initial Release Candidate

##Full Support For...

  • GET requests (both, /resource/ and /resource/:id/)
  • POST requests
  • DELETE requests
  • Ensuring all @Exposed parameters are required on post request.
  • Java8

POST requests can contain either the parameters as a query string (/resource/?name=something) or body parameters passed in as json ({name: 'something'}).