<filename>teams-presentation/src/main/java/it/maconsulting/teams/presentation/controller/team/TeamsController.java
package it.maconsulting.teams.presentation.controller.team;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author <NAME>
 * @since 0.0.1-SNAPSHOT
 */
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("teams")
public class TeamsController {

    /**
     * Get a list of the existing teams
     * @return
     */
    @GetMapping
    public List<Object> list() {
        return null;
    }

    /**
     * Create an empty team
     * @return
     */
    @PostMapping
    public ResponseEntity<String> create(@RequestBody String name) {
        return ResponseEntity.ok("OK");
    }

}
