C# Class Swagger.ObjectModel.Builders.SwaggerBuilderConfig

Afficher le fichier Open project: khellang/Nancy.Swagger

Méthodes publiques

Méthode Description
DefaultModelIdConvention ( Type type ) : string

Returns a unique model id for the given type.

Returns the type's name. If this id was resolved by a different type first, prepend the last part of the type's namespace and check again. And so on.

DefaultNicknameConvention ( string path, HttpMethod method, System.Operation route ) : string

Returns a unique id for the given route that can be used by tools reading the output for further and easier manipulation.

Private Methods

Méthode Description
SwaggerBuilderConfig ( ) : System

Method Details

DefaultModelIdConvention() public static méthode

Returns a unique model id for the given type.
Returns the type's name. If this id was resolved by a different type first, prepend the last part of the type's namespace and check again. And so on.
public static DefaultModelIdConvention ( Type type ) : string
type System.Type
Résultat string

DefaultNicknameConvention() public static méthode

Returns a unique id for the given route that can be used by tools reading the output for further and easier manipulation.
public static DefaultNicknameConvention ( string path, HttpMethod method, System.Operation route ) : string
path string
method HttpMethod
route System.Operation The route for which a nickname is returned.
Résultat string