Skip to content

Commit

Permalink
docs: fix duplicated sample
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZeitler authored and jeremydmiller committed Oct 22, 2024
1 parent c47ea5f commit 61d5701
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
14 changes: 2 additions & 12 deletions docs/guide/http/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public async Task hello_world()
Moving on to the actual `Todo` problem domain, let's assume we've got a class like this:

<!-- snippet: sample_Todo -->
<a id='snippet-sample_todo'></a>
<a id='snippet-sample_Todo'></a>
```cs
public class Todo
{
Expand All @@ -135,17 +135,7 @@ public class Todo
public bool IsComplete { get; set; }
}
```
<sup><a href='https://github.com/JasperFx/wolverine/blob/main/src/Samples/MultiTenantedTodoService/MultiTenantedTodoService/Endpoints.cs#L7-L16' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample_todo' title='Start of snippet'>anchor</a></sup>
<a id='snippet-sample_todo-1'></a>
```cs
public class Todo
{
public int Id { get; set; }
public string? Name { get; set; }
public bool IsComplete { get; set; }
}
```
<sup><a href='https://github.com/JasperFx/wolverine/blob/main/src/Samples/TodoWebService/TodoWebService/Endpoints.cs#L7-L16' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample_todo-1' title='Start of snippet'>anchor</a></sup>
<sup><a href='https://github.com/JasperFx/wolverine/blob/main/src/Samples/TodoWebService/TodoWebService/Endpoints.cs#L7-L16' title='Snippet source file'>snippet source</a> | <a href='#snippet-sample_Todo' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

In a sample class called [TodoEndpoints](https://github.com/JasperFx/wolverine/blob/main/src/Samples/TodoWebService/TodoWebService/Endpoints.cs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@

namespace MultiTenantedTodoWebService;

#region sample_Todo

public class Todo
{
public int Id { get; set; }
public string? Name { get; set; }
public bool IsComplete { get; set; }
}

#endregion

public record CreateTodo(string Name);

public record UpdateTodo(int Id, string Name, bool IsComplete);
Expand Down

0 comments on commit 61d5701

Please sign in to comment.