-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
The Servicecontract
`
[ServiceContract]
public interface IMessage
{
[WebGet(UriTemplate = "/translations", BodyStyle = WebMessageBodyStyle.Bare)]
string GetText(string classCode, long code);
[WebGet(UriTemplate = "/translations", BodyStyle = WebMessageBodyStyle.Bare)]
string GetText(string classCode, long code, string languageIso);
}
`
The service Implementation
`
public class MessagesService : ESPBaseService, ESP.Contracts.Data.IMessage
{
[SwaggerWcfTag("Messages")]
[SwaggerWcfPath("GetText", "Get messageText with current language")]
string IMessage.GetText(string classCode, long code)
{
throw new NotImplementedException();
}
[SwaggerWcfTag("Messages")]
[SwaggerWcfPath("GetText", "Get messageText with the current language in laguageIso")]
string IMessage.GetText(string classCode, long code, string languageIso)
{
throw new NotImplementedException();
}
}
`
The result:
The swagger.json have only one GetText section:
Metadata
Metadata
Assignees
Labels
No labels