Skip to content
Snippets Groups Projects

Dev

Closed Виктор Копыл requested to merge dev into master
46 files
+ 1504
0
Compare changes
  • Side-by-side
  • Inline
Files
46
package ru.mkskom.bi.datamodel.api.controller;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import ru.mkskom.bi.datamodel.api.dto.DataModelDTO;
import ru.mkskom.bi.datamodel.api.dto.ImportResponseDto;
import java.util.Set;
import java.util.UUID;
public interface ModelController {
@PostMapping("/data-models")
ResponseEntity<ImportResponseDto> addDataModel(@RequestBody DataModelDTO dataModelDTO);
@GetMapping("/data-models/{id}")
ResponseEntity<DataModelDTO> getDataModel(@PathVariable UUID id);
@GetMapping("/data-models")
ResponseEntity<Set<DataModelDTO>> getDataModels();
}
Loading