Watson Discovery

 View Only
Expand all | Collapse all

Question about (continuous) delivery with V2 Api

  • 1.  Question about (continuous) delivery with V2 Api

    Posted Mon July 19, 2021 06:06 AM
    Hi (It's me again)

    In V1 of the Discovery api, we could download a complete configuration of a collection (environment) en use this configuration to create a new collection.
    This was a way (one possible) for us to implement some kind op DTAP street. 
    We would build a collection, add fields, add enrichments etc.. and at one point all the efforts combined formed a collection that could be used by our clients.
    So we would create a package and deploy it into production.

    I have been playing with the V2 API's and I can list all kinds of configurations (Components, Fields, Enrichments, CollectionDetails).
    Would you advise to export the JSON results of all these calls and than use this JSON in an import/create program to deliver a new version of our solution to production OR is there another pattern that you would advise to use here ?

    Thanks (again)

    Michel

    ------------------------------
    Michel Jonker
    ------------------------------

    #WatsonDiscovery


  • 2.  RE: Question about (continuous) delivery with V2 Api

    Posted Mon July 19, 2021 09:25 PM
    Hi Michel, 

    Generally yes to recreate a collection you could collect the bundle of configurations and add them back into a new project, but how you get the configurations varies depending on the feature. For example, 
    - For SDU, you can export the model via the UI and then import in a new collection
    - For dictionaries, you can download via the UI 
    - Enrichment settings you can get via the API 
    - Project type you can get via the API
    - Relevancy Training data you can get via the API 

    We do plan to expose additional APIs to allow this process to be more automated in the future.

    ------------------------------
    ANISH MATHUR
    ------------------------------