Skip to content

Commit 6b40ddf

Browse files
committed
fix merge bug in Northwind
1 parent 7fc9bf2 commit 6b40ddf

2 files changed

Lines changed: 22 additions & 61 deletions

File tree

  • src/ServiceStack.Northwind
Lines changed: 19 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,31 @@
11
using System.Collections.Generic;
22
using ServiceStack.Northwind.ServiceModel.Types;
3+
using ServiceStack.ServiceHost;
34
using ServiceStack.ServiceInterface.ServiceModel;
45

5-
public class Customers {}
6-
public class CustomerResponse : IHasResponseStatus
6+
namespace ServiceStack.Northwind.ServiceModel.Operations
77
{
8-
public CustomerResponse()
8+
[RestService("/orders")]
9+
[RestService("/orders/page/{Page}")]
10+
[RestService("/customers/{CustomerId}/orders")]
11+
public class Orders
912
{
10-
this.ResponseStatus = new ResponseStatus();
13+
public int? Page { get; set; }
14+
15+
public string CustomerId { get; set; }
1116
}
12-
13-
public Customer Customer { get; set; }
14-
15-
public ResponseStatus ResponseStatus { get; set; }
16-
}
17-
public class CustomersResponse : IHasResponseStatus
18-
{
19-
public CustomersResponse()
17+
18+
public class OrdersResponse : IHasResponseStatus
2019
{
21-
this.ResponseStatus = new ResponseStatus();
22-
this.Customers = new List<Customer>();
23-
}
24-
25-
public List<Customer> Customers { get; set; }
26-
27-
public ResponseStatus ResponseStatus { get; set; }
28-
}
29-
public class CustomerDetails
30-
{
31-
32-
public string Id { get; set; }
33-
}
20+
public OrdersResponse()
21+
{
22+
this.ResponseStatus = new ResponseStatus();
23+
this.Results = new List<CustomerOrder>();
24+
}
3425

26+
public List<CustomerOrder> Results { get; set; }
3527

36-
public class CustomerDetailsResponse : IHasResponseStatus
37-
{
38-
public CustomerDetailsResponse()
39-
{
40-
this.ResponseStatus = new ResponseStatus();
41-
this.CustomerOrders = new List<CustomerOrder>();
28+
public ResponseStatus ResponseStatus { get; set; }
4229
}
43-
44-
public Customer Customer { get; set; }
45-
46-
public List<CustomerOrder> CustomerOrders { get; set; }
47-
48-
public ResponseStatus ResponseStatus { get; set; }
49-
}
50-
public class Orders
51-
{
52-
53-
public int? Page { get; set; }
54-
55-
public string CustomerId { get; set; }
56-
}
57-
public class OrdersResponse : IHasResponseStatus
58-
{
59-
public OrdersResponse()
60-
{
61-
this.ResponseStatus = new ResponseStatus();
62-
this.Results = new List<CustomerOrder>();
63-
}
64-
65-
public List<CustomerOrder> Results { get; set; }
66-
67-
public ResponseStatus ResponseStatus { get; set; }
68-
}
69-
7030

31+
}

src/ServiceStack.Northwind/ServiceStack.Northwind/Web.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@
3535
<!--
3636
The <authentication> section enables configuration
3737
of the security authentication mode used by
38-
ASP.NET to identify an incoming user.
38+
ASP.NET to identify an incoming user.
3939
-->
4040
<authentication mode="Windows"/>
4141
<!--
4242
The <customErrors> section enables configuration
4343
of what to do if/when an unhandled error occurs
4444
during the execution of a request. Specifically,
45-
it enables developers to configure html error pages
45+
it enables developers to configure html error pages
4646
to be displayed in place of a error stack trace.
47-
47+
4848
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
4949
<error statusCode="403" redirect="NoAccess.htm" />
5050
<error statusCode="404" redirect="FileNotFound.htm" />

0 commit comments

Comments
 (0)