Configuring asset types

Before you publish custom assets to Developer Portal, you must configure the asset type. You can add an asset type and configure its properties from the Manage asset types page.

About this task

This use case starts when you want to add a custom asset type and ends when you add the asset type and configure its properties.

In this example, consider adding the asset type, Microservice with the following properties.
  • Overview. A rich text field that states the overview of the asset (Microservice). This is an optional field.
  • Microservice document. An option to upload a file (Microservice document). This is an optional field.
  • Published On. A date time field to provide the date of the asset publish. This is an optional field.
  • Author. A text field that provides the asset's author name. This is a mandatory field.

Procedure

  1. Click the menu options icon Menu options icon from the title bar and click Administration.
  2. Click Manage asset types and click Add type.
  3. Provide Microservice in the Name field.
  4. Provide a description in the Description field.
  5. Add the fields based on the information about custom assets that you want to publish.
    When you add an asset of the defined type, you must specify values for the configured properties.
  6. To add the Overview field
    1. Click Add properties.
    2. Provide Overview in the Name field.
    3. Provide Microservice Overview in the Display name field.
    4. Select Rich text from the Select property type field.
  7. To add the Microservice document field
    1. Click Add properties.
    2. Provide Document in the Name field.
    3. Provide a Microservice Document in the Display name field.
    4. Select File from the Select property type field.
    5. Click Add.
  8. To add the Published on field
    1. Click Add properties.
    2. Provide Published On in the Name and Display name fields.
    3. Select Date from the Select property type field.
    4. Click Add.
  9. To add the Author field
    1. Click Add properties.
    2. Provide Author in the Name field.
    3. Provide Author in the Display name field.
    4. Select String from the Select property type field.
    5. Turn on the Required slider.
    6. Click Add.
  10. Click Save.
    The asset type is added.
    Note: When you create an asset type, the following properties are added by default:
    • Icon
    • Name
    • Version
    • Summary
    • Tags
    Make sure that you do not add duplicate of these default properties.

What to do next

  • You can perform the following steps after you add the list of properties.
    • Edit the details of the field by clicking Edit icon.
    • Move the field up or down by clicking Move up icon or Move down icon. These fields appear in the order that they are created. You can modify the properties according to your requirement.
    • Remove a field by clicking Delete icon.
  • You can perform the following steps after you add an asset type.