Skip to content

Instantly share code, notes, and snippets.

@pablocloud
Created March 14, 2018 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablocloud/92bade3963d92f0cbaf1db394e80f736 to your computer and use it in GitHub Desktop.
Save pablocloud/92bade3963d92f0cbaf1db394e80f736 to your computer and use it in GitHub Desktop.
package com.besuricata.rest.controllers;
import java.util.Collection;
interface BasicController<T, ID> {
T getById(ID identifier);
Collection<T> get();
T post(T object);
T put(ID identifier, T object);
Boolean delete(ID identifier);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment