package cn.ibizlab.r7.runtime.runtimemgr.r7rt_base.feign;

import java.util.List;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.r7.runtime.runtimemgr.r7rt_base.domain.Application;
import cn.ibizlab.r7.runtime.runtimemgr.r7rt_base.filter.*;


public interface ApplicationFeignClient {



	@RequestMapping(method = RequestMethod.DELETE, value = "/runtimemgr/applications/{application_id}")
    public Boolean remove(@PathVariable("application_id") String application_id) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/applications/checkkey")
    public Boolean checkKey(@RequestBody Application application) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/applications/{application_id}/save")
    public Application save(@PathVariable("application_id") String application_id, @RequestBody Application application) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/applications/{application_id}/getdraft")
    public Application getDraft(@PathVariable("application_id") String application_id, @RequestBody Application application) ;

	@RequestMapping(method = RequestMethod.PUT, value = "/runtimemgr/applications/{application_id}")
    public Application update(@PathVariable("application_id") String application_id, @RequestBody Application application) ;

	@RequestMapping(method = RequestMethod.GET, value = "/runtimemgr/applications/{application_id}")
    public Application get(@PathVariable("application_id") String application_id) ;

	@RequestMapping(method = RequestMethod.POST, value = "/runtimemgr/applications")
    public Application create(@RequestBody Application application) ;

    @RequestMapping(method= RequestMethod.GET , value="/runtimemgr/applications/fetchdefault")
	public Page<Application> fetchDefault(ApplicationSearchContext searchContext) ;
}
