Skip to content

This is a library that provides the @Crudify annotation in order to facilitate the creation of CRUD endpoints based on model classes.

License

Notifications You must be signed in to change notification settings

cleversonledur/crudify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Crudify - Because life is too short to CRUD ⚡

(Under development)

This is a library that provides the @Crudify annotation in order to facilitate the creation of CRUD endpoints based on model classes.

This library is under development. The objective is to be able of generating a whole CRUD API simply by adding an annotation on your Model Class.

Example:

@Crudify  //<--- You will just insert this annotation
@Document(collection = "myGreatModel")
public class MyGreatModel{

    @Id
    private String id;

    private String name;

    private String information;

    //Constructors...

    //Getters/Setters and other methods...
}

With this annotation, we will generate the endpoints on the Controller class, services and repositories. After building and running the application you will be able to do POST, GET, UPDATE and DELETE requests, for example:

P.S.: Crudify does not generate security classes. This is up to you to certify your API is secure. We only generate repositories, services and the basic CRUD endpoints.

TODO

  • Improve documentation
  • Check bean generation

Do you want to contribute for this project? Contact me: cleversonledur at gmail dot com

About

This is a library that provides the @Crudify annotation in order to facilitate the creation of CRUD endpoints based on model classes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages