CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/springboot-security-basics

Security defaults that belong in every Spring Boot application from day one.

88

1.79x
Quality

83%

Does it follow best practices?

Impact

97%

1.79x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-4/

Build a Task Tracker API with Spring Boot

Problem/Feature Description

A development team needs a REST API for their task tracking tool. The API is built with Spring Boot and Java. A React frontend on a separate domain will consume it.

The API needs the following endpoints:

  • GET /api/tasks -- list all tasks (supports ?status=open&assignee=john query filters)
  • GET /api/tasks/{id} -- get a single task
  • POST /api/tasks -- create a new task (accepts title, description, priority HIGH/MEDIUM/LOW, assignee)
  • PATCH /api/tasks/{id} -- update a task (change status, reassign, edit details)
  • DELETE /api/tasks/{id} -- delete a task
  • POST /api/tasks/{id}/comments -- add a comment to a task (accepts author, text)

Use an in-memory data store. Tasks should have id, title, description, status (OPEN, IN_PROGRESS, DONE), priority, assignee, comments, and createdAt fields.

Output Specification

Produce:

  • TaskController.java -- REST controller with all endpoints
  • Task.java -- Task model
  • CreateTaskRequest.java -- Request DTO for task creation
  • SecurityConfig.java -- Security configuration
  • pom.xml -- With all required dependencies

evals

tile.json