-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4979273
commit 9fe186c
Showing
96 changed files
with
497 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### Get todolist | ||
GET localhost:8080/todolist | ||
Content-Type: application/json | ||
Accept: application/prs.hal-forms+json | ||
|
||
### Add task | ||
POST localhost:8080/todolist/add/task | ||
Content-Type: application/json | ||
Accept: application/prs.hal-forms+json | ||
|
||
{ | ||
"description": "Aller al pec'" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
service/src/main/java/io/github/gabbloquet/todolist/configuration/WebConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.github.gabbloquet.todolist.configuration; | ||
|
||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.web.servlet.config.annotation.CorsRegistry; | ||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | ||
|
||
@Configuration | ||
public class WebConfig implements WebMvcConfigurer { | ||
@Override | ||
public void addCorsMappings(CorsRegistry registry) { | ||
registry.addMapping("/**") | ||
.allowedOrigins("*") | ||
.allowedMethods("GET", "POST", "PUT", "DELETE") | ||
.allowedHeaders("*"); | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
service/src/main/java/io/github/gabbloquet/todolist/domain/task/TaskRepository.java
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
service/src/main/java/io/github/gabbloquet/todolist/domain/task/addTask/OpenTask.java
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
service/src/main/java/io/github/gabbloquet/todolist/domain/task/infra/dto/TaskRequest.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
service/src/main/java/io/github/gabbloquet/todolist/domain/task/model/TaskEvent.java
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
service/src/main/java/io/github/gabbloquet/todolist/domain/todolist/TodolistCommand.java
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...src/main/java/io/github/gabbloquet/todolist/domain/todolist/infra/dto/AddTaskRequest.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...n/java/io/github/gabbloquet/todolist/domain/todolist/infra/dto/PrioritizeTaskRequest.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...src/main/java/io/github/gabbloquet/todolist/domain/todolist/model/TodolistCommandBus.java
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
service/src/main/java/io/github/gabbloquet/todolist/domain/todolist/model/TodolistEvent.java
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...uet/todolist/domain/task/TaskCommand.java → ...gabbloquet/todolist/task/TaskCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
service/src/main/java/io/github/gabbloquet/todolist/task/TaskRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.github.gabbloquet.todolist.task; | ||
|
||
import io.github.gabbloquet.todolist.task.model.Task; | ||
import io.github.gabbloquet.todolist.task.model.TaskId; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface TaskRepository { | ||
|
||
List<Task> get(); | ||
|
||
Optional<Task> get(TaskId taskId); | ||
|
||
void save(Task task); | ||
} |
10 changes: 5 additions & 5 deletions
10
...uet/todolist/domain/task/TaskService.java → ...gabbloquet/todolist/task/TaskService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...t/domain/task/TaskUseCaseTransaction.java → ...todolist/task/TaskUseCaseTransaction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...todolist/domain/task/addTask/AddTask.java → ...loquet/todolist/task/addTask/AddTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...t/domain/task/addTask/AddTaskUseCase.java → ...todolist/task/addTask/AddTaskUseCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
service/src/main/java/io/github/gabbloquet/todolist/task/addTask/OpenTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.github.gabbloquet.todolist.task.addTask; | ||
|
||
import io.github.gabbloquet.todolist.annotations.DomainCommand; | ||
import io.github.gabbloquet.todolist.todolist.TodolistCommand; | ||
|
||
@DomainCommand | ||
public interface OpenTask extends TodolistCommand { | ||
} |
6 changes: 3 additions & 3 deletions
6
...list/domain/task/addTask/TaskCreated.java → ...et/todolist/task/addTask/TaskCreated.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...omain/task/completeTask/CompleteTask.java → ...olist/task/completeTask/CompleteTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ask/completeTask/CompleteTaskUseCase.java → ...ask/completeTask/CompleteTaskUseCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.