Book Image

Mastering ServiceStack

By : Andreas Niedermair
Book Image

Mastering ServiceStack

By: Andreas Niedermair

Overview of this book

Table of Contents (13 chapters)

The Ticket application

It is much more advisable to discuss problems and solutions with the help of a working example. Therefore, we will create a basic application to handle tickets (without any workflow), which we will expand throughout the course of this chapter.

The application will initially be implemented by the following RESTful web services:

  1. TicketService: Create, read, update, and delete tickets.

  2. CommentService: Administer comments of tickets (create, read, update, and delete).


    Whenever you are dealing with multiple entities it is a good idea to use the rule of thumb and separate the services based on the handled entities.

The implementation of this example has been done by following the Test Driven Development (TDD) approach. It's done by designing the domain layer and then consecutively implementing the subjacent layers based on the red-green-refactor mantra. The implementation phase is covered by Unit Tests against each iteration. The actual code is available in the code folder...