-
Notifications
You must be signed in to change notification settings - Fork 710
/
Copy pathBook.cs
38 lines (32 loc) · 1.04 KB
/
Book.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
namespace ApiVersioning.Examples;
using Microsoft.OData.ModelBuilder;
// TODO: Model Bound settings can be performed via attributes if the
// return type is known to the API Explorer or can be explicitly done
// via one or more IModelConfiguration implementations
/// <summary>
/// Represents a book.
/// </summary>
[Filter( "author", "published" )]
public class Book
{
/// <summary>
/// Gets or sets the book identifier.
/// </summary>
/// <value>The International Standard Book Number (ISBN).</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets the book author.
/// </summary>
/// <value>The author of the book.</value>
public string Author { get; set; }
/// <summary>
/// Gets or sets the book title.
/// </summary>
/// <value>The title of the book.</value>
public string Title { get; set; }
/// <summary>
/// Gets or sets the book publication year.
/// </summary>
/// <value>The year the book was first published.</value>
public int Published { get; set; }
}