Groups of Methods - AlexanderKrutov/Radish GitHub Wiki

REST API methods can be grouped logically in the documentation into sections. For example, in this demo there are 2 logical groups of REST methods: Persons and Pets.

As well as REST methods inside a group (see methods ordering), groups can be ordered between themselves. The same rule is used too: groups with smaller order value will be placed first.

By default, there are no groups of methods in the documentation output. If you want do make groupings, you need to define groups with AddMethodGroup() method of Documentor class. There are several overloaded variants:

Define group id ("pets") and title ("Pets"):

documentor.AddMethodGroup("pets", "Pets");

Define group id, title and description:

documentor.AddMethodGroup("pets", "Pets", "REST Methods to manipulate with Pets objects");

Define group id, title and order of the group:

documentor.AddMethodGroup("pets", "Pets", 1);

Define group id, title, description and order of the group:

documentor.AddMethodGroup("pets", "Pets", "REST Methods to manipulate with Pets objects", 1);