Exemple #1
0
 /// <summary>
 /// Add Custom route for flushing cached attributes
 /// </summary>
 /// <param name="routes"></param>
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "security",
         routeTemplate: "api/People/{action}/{param}",
         defaults: new
     {
         controller = "security",
         param      = RouteParameter.Optional
     }).RouteHandler = new SessionRouteHandler();
     routes.MapHttpRoute(
         name: "securityNoParam",
         routeTemplate: "api/People/{action}",
         defaults: new
     {
         controller = "security",
         param      = RouteParameter.Optional
     }).RouteHandler = new SessionRouteHandler();
 }
 /// <summary>
 /// Add in the routes that are supported by this plugin.
 /// </summary>
 /// <param name="routes">The RouteCollection that we should add any additional routes to.</param>
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "ShepherdChurchDigitalSignageSlides",
         routeTemplate: "api/com.shepherdchurch/DigitalSignage/{type}/{id}",
         defaults: new
     {
         controller = "DigitalSignRotator"
     });
 }
 /// <summary>
 /// Adds the routes.
 /// </summary>
 /// <param name="routes">The routes.</param>
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "PagesGetChildren",
         routeTemplate: "api/Pages/GetChildren/{id}",
         defaults: new
     {
         controller = "Pages",
         action     = "GetChildren"
     });
 }
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "UsernameAvailable",
         routeTemplate: "api/users/available/{username}",
         defaults: new
     {
         controller = "users",
         action     = "available"
     });
 }
Exemple #5
0
 /// <summary>
 /// Adds the routes.
 /// </summary>
 /// <param name="routes">The routes.</param>
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "AuthLogin",
         routeTemplate: "api/Auth/Login",
         defaults: new
     {
         controller = "Auth",
         action     = "Login"
     });
 }
Exemple #6
0
 /// <summary>
 /// Add Custom route needed for block move
 /// </summary>
 /// <param name="routes"></param>
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "BlockMove",
         routeTemplate: "api/blocks/move/{id}",
         defaults: new
     {
         controller = "blocks",
         action     = "move"
     });
 }
        /// <summary>
        /// Add custom routes needed for geocoding and standardization
        /// </summary>
        /// <param name="routes"></param>
        public void AddRoutes(System.Web.Routing.RouteCollection routes)
        {
            routes.MapHttpRoute(
                name: "LocationGeocode",
                routeTemplate: "api/locations/geocode",
                defaults: new
            {
                controller = "locations",
                action     = "geocode"
            });

            routes.MapHttpRoute(
                name: "LocationStandardize",
                routeTemplate: "api/locations/standardize",
                defaults: new
            {
                controller = "locations",
                action     = "standardize"
            });
        }
Exemple #8
0
 /// <summary>
 /// Adds the routes.
 /// </summary>
 /// <param name="routes">The routes.</param>
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "GroupsGetChildren",
         routeTemplate: "api/Groups/GetChildren/{id}/{rootGroupId}/{limitToSecurityRoleGroups}/{groupTypeIds}",
         defaults: new
     {
         controller = "Groups",
         action     = "GetChildren"
     });
 }
Exemple #9
0
 /// <summary>
 /// Add Custom route for flushing cached attributes
 /// </summary>
 /// <param name="routes"></param>
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "TaggedItemsByEntity",
         routeTemplate: "api/taggeditems/{entityTypeId}/{ownerid}/{entityguid}/{entityqualifier}/{entityqualifiervalue}",
         defaults: new
     {
         controller           = "taggeditems",
         entityqualifier      = RouteParameter.Optional,
         entityqualifiervalue = RouteParameter.Optional
     });
 }
Exemple #10
0
 /// <summary>
 /// Add Custom route for flushing cached attributes
 /// </summary>
 /// <param name="routes"></param>
 public void AddRoutes( System.Web.Routing.RouteCollection routes )
 {
     routes.MapHttpRoute(
         name: "AttributeFlush",
         routeTemplate: "api/attributes/flush/{id}",
         defaults: new
         {
             controller = "attributes",
             action = "flush",
             id = System.Web.Http.RouteParameter.Optional
         } );
 }
Exemple #11
0
 /// <summary>
 /// Add Custom route for flushing cached attributes
 /// </summary>
 /// <param name="routes"></param>
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "FamiliesByPhone",
         routeTemplate: "api/org.secc/familycheckin/{action}/{param}",
         defaults: new
     {
         controller           = "familycheckin",
         entityqualifier      = RouteParameter.Optional,
         entityqualifiervalue = RouteParameter.Optional
     }).RouteHandler = new SessionRouteHandler();
 }
 /// <summary>
 /// Adds the routes.
 /// </summary>
 /// <param name="routes">The routes.</param>
 public void AddRoutes(System.Web.Routing.RouteCollection routes)
 {
     routes.MapHttpRoute(
         name: "CategoriesGetChildren",
         routeTemplate: "api/Categories/GetChildren/{id}/{getCategorizedItems}/{entityTypeId}/{entityqualifier}/{entityqualifiervalue}",
         defaults: new
     {
         controller           = "Categories",
         action               = "GetChildren",
         entityqualifier      = RouteParameter.Optional,
         entityqualifiervalue = RouteParameter.Optional
     });
 }
Exemple #13
0
        /// <summary>
        /// Adds the routes.
        /// </summary>
        /// <param name="routes">The routes.</param>
        public void AddRoutes(System.Web.Routing.RouteCollection routes)
        {
            routes.MapHttpRoute(
                name: "FinancialTransactionGetMicr",
                routeTemplate: "api/FinancialTransactions/PostScanned",
                defaults: new
            {
                controller = "FinancialTransactions",
                action     = "PostScanned"
            });

            routes.MapHttpRoute(
                name: "GetContributionPersonGroupAddress",
                routeTemplate: "api/FinancialTransactions/GetContributionPersonGroupAddress",
                defaults: new
            {
                controller = "FinancialTransactions",
                action     = "GetContributionPersonGroupAddress"
            });

            routes.MapHttpRoute(
                name: "GetContributionTransactionsGroup",
                routeTemplate: "api/FinancialTransactions/GetContributionTransactions/{groupId}",
                defaults: new
            {
                controller = "FinancialTransactions",
                action     = "GetContributionTransactions"
            });

            routes.MapHttpRoute(
                name: "GetContributionTransactionsPerson",
                routeTemplate: "api/FinancialTransactions/GetContributionTransactions/{groupId}/{personId}",
                defaults: new
            {
                controller = "FinancialTransactions",
                action     = "GetContributionTransactions"
            });
        }
Exemple #14
0
        /// <summary>
        /// Adds the routes.
        /// </summary>
        /// <param name="routes">The routes.</param>
        public void AddRoutes(System.Web.Routing.RouteCollection routes)
        {
            routes.MapHttpRoute(
                name: "PeopleSearchParam",
                routeTemplate: "api/People/Search",
                defaults: new
            {
                controller = "People",
                action     = "Search"
            });

            routes.MapHttpRoute(
                name: "PeopleSearch",
                routeTemplate: "api/People/Search/{name}/{includeHtml}",
                defaults: new
            {
                controller = "People",
                action     = "Search"
            });

            routes.MapHttpRoute(
                name: "PeopleGetByUserName",
                routeTemplate: "api/People/GetByUserName/{username}",
                defaults: new
            {
                controller = "People",
                action     = "GetByUserName"
            });

            routes.MapHttpRoute(
                name: "PeoplePopupHtml",
                routeTemplate: "api/People/PopupHtml/{personId}",
                defaults: new
            {
                controller = "People",
                action     = "GetPopupHtml"
            });
        }
        /// <summary>
        /// Add Custom route for flushing cached attributes
        /// </summary>
        /// <param name="routes"></param>
        public void AddRoutes(System.Web.Routing.RouteCollection routes)
        {
            routes.MapHttpRoute(
                name: "TagNamesAvail",
                routeTemplate: "api/tags/availablenames/{entityTypeId}/{ownerid}/{entityguid}/{entityqualifier}/{entityqualifiervalue}",
                defaults: new
            {
                controller           = "tags",
                action               = "availablenames",
                entityqualifier      = RouteParameter.Optional,
                entityqualifiervalue = RouteParameter.Optional
            });

            routes.MapHttpRoute(
                name: "TagsByEntity",
                routeTemplate: "api/tags/{entityTypeId}/{ownerid}/{name}/{entityqualifier}/{entityqualifiervalue}",
                defaults: new
            {
                controller           = "tags",
                entityqualifier      = RouteParameter.Optional,
                entityqualifiervalue = RouteParameter.Optional
            });
        }