Class MapToApiAttribute
Attribute used to map a class to a specific API for OpenAPI documentation generation.
Inheritance
object
Attribute
Namespace: Umbraco.Cms.Api.Common.Attributes
Assembly: Umbraco.Cms.Api.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class MapToApiAttribute : Attribute
Constructors
View SourceMapToApiAttribute(string)
Initializes a new instance of the MapToApiAttribute class.
Declaration
public MapToApiAttribute(string apiName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | apiName | The name of the API to map to. |
Properties
View SourceApiName
Gets the name of the API this class is mapped to.
Declaration
public string ApiName { get; }
Property Value
| Type | Description |
|---|---|
| string |