Example #1
0
        internal static string GenerateUri(Content content, string operationName)
        {
            var resource = string.IsNullOrEmpty(content.ContentHandler.ParentPath)
            ? Configuration.Services.ODataAndRoot
            : $"{Configuration.Services.ODataServiceToken}" +
                           $"{ODataMiddleware.GetODataPath(content.ContentHandler.ParentPath, content.Name)}";

            return($"/{resource}/{operationName}");
        }
Example #2
0
 protected string GetSelfUrl(Content content)
 {
     return(string.Concat("/", Configuration.Services.ODataServiceToken, ODataMiddleware.GetEntityUrl(content.Path)));
 }
Example #3
0
 public static OperationCallingContext GetMethodByRequest(Content content, string methodName, string requestBody)
 {
     return(GetMethodByRequest(content, methodName, ODataMiddleware.ReadToJson(requestBody), null));
 }