All Downloads are FREE. Search and download functionalities are using the official Maven repository.

win.doyto.query.web.controller.RestApi Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package win.doyto.query.web.controller;

import win.doyto.query.core.PageQuery;
import win.doyto.query.service.PageList;

import java.io.Serializable;
import java.util.List;

/**
 * RestApi
 *
 * @author f0rb on 2019-05-28
 */
public interface RestApi {

    List list(Q q);

    PageList page(Q q);

    S getById(I id);

    S deleteById(I id);

    void update(I id, R request);

    void patch(I id, R request);

    void add(R request);

    void add(List requests);

}