The ASP.NET Web API is a popular technology for providing data services over HTTP. This section describes how specific Web API service implementations influence Breeze client development.
There are many ways to write your service with the ASP.NET Web API. We group them here in three categories:
A “Breeze-flavored” Web API is the quickest, most productive path to an HTTP service that a Breeze client can talk to with minimal configuration. You’ll use .NET components written specifically to support Breeze clients and you’ll write one (or a few) controllers in a style that minimizes your server-side coding and maintenance without compromising power, flexibility, security or performance.
The following topics cover various aspects of this Breeze-flavored approach
Conventional Web API development is a bit different. Instead of one controller governing a feature area, you write a controller for every exposed “root type”. Such controllers typically sport one or more GET methods and a PUT, POST/PATCH, and DELETE method for the create, update, and delete operations. This is sometimes referred to as a “REST API”. On top of this scheme you may choose from a variety of data serialization options.
With this approach, you can tailor the API precisely to what you believe your client applications’ require. You don’t need any Breeze-oriented components on the server. You can ignore Breeze altogether.
On the other hand, you’re API is entirely idiosyncratic and you’ll have to explain that API to all client developers (Breeze and non-Breeze client developers) so they know how to call your API, how to interpret response data, and how to compose a request body when a body is needed.
Breeze clients work well with these APIs too. You have to do a bit more work to configure your Breeze client to communicate with such an API; there are a variety of client-side extension points for this purpose. The effort is small or large depending upon the complexity of your API and in this respect writing a Breeze client is no more challenging than writing a client without Breeze.
You do have to learn how. Documentation for this path is not yet available but is on the way.
ASP.NET provides a special set of components and techniques for building an OData service in Web API.
Such a service can be consumed by any client that understands the OData protocol … a set that includes Breeze clients. If you’re writing an OData Web API service, you have implementation choices with consequences for client application developers. To learn how these choices affect Breeze clients, start with the topic “OData on the Server”.
For technical questions, please go to StackOverflow with the tag “breeze”. StackOverflow is a fantastic site where thousands of developers help each other with their technical questions.
We monitor the [breeze] tag on the StackOverflow website and do our best to answer your questions. The advantage of StackOverflow over the GitHub Wiki is the sheer number of qualified developers able to help you with your questions, the visibility of the question itself, and the whole StackOverflow infrastructure (reputation, up- or down-vote, comments, etc).
For bug reports, please do use the GitHub Issues tab!
Please post your feature suggestions to our User Voice site
Have a non-technical question? Ask us at firstname.lastname@example.org.