Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: fix duplicated sample #1092

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading