Example #1
0
        public IRestCollection GetArtistsCollection <TStem>()
        {
            IRestDirectory directory      = GetDirectoryFromRoots(typeof(ArtistsRoot <TStem>));
            var            restCollection = (IRestCollection)directory.GetChild("Artists");

            return(restCollection);
        }
 public static IRestCollection GetCollection([NotNull] this IRestDirectory directory, [NotNull] string startResourceName)
 {
     return(directory.GetChild(startResourceName).AsCollection());
 }
 public static IRestScalar GetScalar([NotNull] this IRestDirectory directory, [NotNull] string startResourceName)
 {
     return(directory.GetChild(startResourceName).AsScalar());
 }
 public static IRestItem GetItem([NotNull] this IRestDirectory directory, [NotNull] string startResourceName)
 {
     return(directory.GetChild(startResourceName).AsItem());
 }
Example #5
0
 internal RestDirectoryEndpoint(IEndpointContext endpointContext, IRestDirectory directory)
 {
     Context   = endpointContext;
     Directory = directory;
 }