Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once you saved the Controller record , the Controller Genrated Generated Classes fields will be automatically generatedupdate.

Controller Routes Tab:

Controller routes  defines how URL looks like and how to access controller endpoint is defined here.You can add multiple controller routes. it has Field are  

Name:  Name of Controller Route

Route Regular Expression:  Route Regular expression are genrated generated by entity plugin for controller route.You need not to set it manually.It is used internally for Aptify SOA.

Route Help Text: It gives summary information about the controller and parameters thats it expects from endpoint. These are standard .net /// comments. Once set these comments will displayed automatically in help page. 

...

Controller Routes Http Method Tab: You can select any standard http method defined in list.There are seven types of standard http method available in aptify. DELETE,GET,HEAD, OPTIONS,POST,PUT and TRACE..

 

Controller Route Path Parts Tab: Defines how the controller can be accessed by defining path parts. It will correlate the URl  how  user will access URLby user.

Type: it will be any data type string, int, boolean etc.

Value: It may be part value or variable value. for example in above ParamDemo is part value which will be actual displayed in URI. but param1 is variable value which will be replaced by string variable in URl.

Is Literal:  if it's checked then URL expect the value defined above.if it's not checked then value will be is equal to variable value.

Is Optional:  if checked for part  then By default it's unchecked for the value will be optional in the URI. But Is Optional checking should be logical. URI will be invalid if we checked Is Optional option for value but deselect for variable value.

      4. Next step is to add record in Controller Configuration under web service in Aptify.

...

        5. Now you need to add record in Controller Configuration Collection under Controller Configuration Tab. Controller Configurations are grouped together in Controller Configuration Collections.

...

            If caching policy  and autherization and authorization plugin is defined for controller configuration it will be override by policy defined in controller configurations.

       6. Now you need to set service application Service Application in web service for that controller collection. For this you add record of Controller Configuration Collections that you have created.

...