Register a new type

Each service may have one or more types. There are three different type settings that the user can register. 

To register a new type to a service, perform the following:

  1. Navigate to Administration » Settings » Advanced » WebServices » Routes.
  2. Select the route to your service and click Services.
  3. Select the service, where you want to register a new type and click Types.
  4. Click Create new and select one of the following:
    • TypeSettings
      You use this type for all of the types that do not have a lifecycle.
      Fill out the following fields:
      1. In the Clr Type field, enter the actual CLR type that will be queried.
        ClrType is also the key of the item.This property is unique per service. You cannot register a type twice.
      2. In the Url name field, enter the URL of the type.
        UrlName is the third segment in the URL that is used to build up the full URL. This property is unique per service.
      3. Deselect the Enabled property, if you want not expose the type publicly.
        If you leave it selected, then the type will be exposed to the public. 
      4. In Access field, you can set specific access level for the type.
        If you leave it empty, the access level set for the service will be used. For more information, see Create a web service » Define the Access permissions.
      5. In Default page size field, specify a default page size, when no $top parameter is specified.
    • LifecycleTypeSettings
      You use this type for all the types that have a lifecycle, such as, News, Events, BlogPosts, or dynamic types.
      In addition to all field that type TypeSettings has, LifecycleTypeSettings has field Lifecycle status. This is the lifecycle status of the items that will be served.
      Enter one of the following:
      • Master
        Only items in status Master will be served.
      • Live
        Only items in status Live will be served.
  5. Save your changes.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?