Skip to content

Commit

Permalink
feat :
Browse files Browse the repository at this point in the history
  • Loading branch information
nookcoder committed Jul 12, 2023
1 parent 1c58ee8 commit e56d913
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
import com.kumofactory.cloud.blueprint.dto.aws.AwsBluePrintDto;
import com.kumofactory.cloud.blueprint.service.AwsBlueprintService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

@RestController
@RequiredArgsConstructor
Expand All @@ -15,6 +12,11 @@ public class BlueprintController {

private final AwsBlueprintService awsBlueprintService;

@GetMapping("/aws")
public AwsBluePrintDto getAwsBlueprint() {
return "hello-world";
}

@PostMapping("/aws")
public String createAwsBlueprint(@RequestBody AwsBluePrintDto awsBluePrintDto) {
awsBlueprintService.store(awsBluePrintDto);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@

public interface AwsBlueprintService {

void getAwsBlueprint();

void store(AwsBluePrintDto awsBluePrintDto);
}

0 comments on commit e56d913

Please sign in to comment.