GitlabProjectController.java 661 B

12345678910111213141516171819
  1. package com.nju.edu.gitlab.controller;
  2. import com.nju.edu.gitlab.web.dto.ProjectDTO;
  3. import com.nju.edu.gitlab.web.response.EmptyResponse;
  4. import com.nju.edu.gitlab.web.response.Response;
  5. import org.springframework.web.bind.annotation.PostMapping;
  6. import org.springframework.web.bind.annotation.RequestBody;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RestController;
  9. @RestController
  10. @RequestMapping("/api/project")
  11. public class GitlabProjectController {
  12. @PostMapping("/")
  13. public Response createProject(@RequestBody ProjectDTO projectDTO){
  14. return new EmptyResponse();
  15. }
  16. }