ParticipeController.java 1.09 KB

package etunicorn.generated;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * No description
 * (Generated with springmvc-raml-parser v.0.8.9)
 */
@RestController
@RequestMapping("/v1/participe")
public interface ParticipeController {


    /**
     * Permet d'ajouter une personne a un evenement
     */
    @RequestMapping(value = "", method = RequestMethod.POST)
    public ResponseEntity<?> updateParticipe(
            @RequestParam
                    Long idPersonne,
            @RequestParam
                    Long idEvenement);

    /**
     * Permet de savoir si une personne participe a un evenement
     */
    @RequestMapping(value = "", method = RequestMethod.GET)
    public ResponseEntity<?> getParticipe(
            @RequestParam
                    Long idPersonne,
            @RequestParam
                    Long idEvenement);

}