Skip to content

Commit

Permalink
Bumping to 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Jan 16, 2024
1 parent 910dc0c commit 3e606d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<NoWarn>1570;1571;1572;1573;1574;1587;1591;1701;1702;1711;1735;0618</NoWarn>
<ImplicitUsings>true</ImplicitUsings>
<Version>1.13.2</Version>
<Version>1.14.0</Version>
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down
12 changes: 6 additions & 6 deletions src/Samples/TodoWebService/TodoWebService/TodoListEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ public class TodoList

public record TodoListCreated(Guid ListId, string Title);

public record TodoCreationResponse(Guid ListId) : CreationResponse("api/todo-lists/" + ListId);

public static class TodoListEndpoint
{
[WolverinePost("/api/todo-lists")]
public static (IResult, IStartStream) CreateTodoList(
CreateTodoListRequest request,
HttpRequest req
public static (TodoCreationResponse, IStartStream) CreateTodoList(
CreateTodoListRequest request
)
{
var listId = CombGuidIdGeneration.NewGuid();
var result = new TodoListCreated(listId, request.Title);
var startStream = MartenOps.StartStream<TodoList>(result);
var response = Results.Created("api/todo-lists/" + listId, result);
var startStream = MartenOps.StartStream<TodoList>(listId, result);

return (response, startStream);
return (new TodoCreationResponse(listId), startStream);
}
}

0 comments on commit 3e606d3

Please sign in to comment.