IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
  • 1.  OpenAPI specification using Salesfoce Query (SOQL)

    Posted Fri September 30, 2022 09:45 AM

    Hi Gurus,

    Just like to know if it is possible to auto generate or manually create an openAPI specification for Salesforce Query (SOQL) resource?

    As far as checked, the only available resources for openAPI specs are only for resources under sobjects.

    I need to use query resource as I need to retrieve multiple records base on a field value (i.e. all records with the field status = completed should be retrieved)

    I’ll be importing the openAPI specs using the REST API Descriptor.

    Regards,
    BG


    #webMethods
    #API-Management
    #API-Gateway
    #Integration-Server-and-ESB


  • 2.  RE: OpenAPI specification using Salesfoce Query (SOQL)

    Posted Mon October 03, 2022 01:41 AM

    Hi,

    OpenAPI specification support in IS right now is limited to importing an OpenAPI document to generate the provider or consumer.

    Generating OpenAPI document from a resource is in the pipeline for future releases. But still, we haven’t considered using third party resources like SOQL resources. But this can be good addition for that feature. We’ll definitely consider this.

    Regards,
    Sumit


    #Integration-Server-and-ESB
    #API-Management
    #API-Gateway
    #webMethods


  • 3.  RE: OpenAPI specification using Salesfoce Query (SOQL)

    Posted Tue October 11, 2022 08:39 AM

    Just an update, I manually created an openAPI specs for query resource and successfully imported in IS. I was able to retrieve records from Salesforce using my query but I still have issues on the response. It appears content of the response are not being encoded properly even adding conent-type or encoding properties in the openAPI specification.


    #Integration-Server-and-ESB
    #API-Management
    #webMethods
    #API-Gateway


  • 4.  RE: OpenAPI specification using Salesfoce Query (SOQL)

    Posted Tue October 11, 2022 10:06 AM

    Hi,

    Thanks for the update.
    On the response thing, not all content-types are supported out of the box for OpenAPI. At present, XML, JSON, Plain text and text/xml are ones supported.

    What exactly is the problem you faced with response encoding.

    Regards,
    Sumit


    #webMethods
    #Integration-Server-and-ESB
    #API-Gateway
    #API-Management


  • 5.  RE: OpenAPI specification using Salesfoce Query (SOQL)

    Posted Mon October 17, 2022 05:59 AM

    Hi @suke ,

    Please see below un-encoded characters (i.e %2F, %3A and + sign) in the response data. There are more of these within the response data.

    In the open API specification, I’ve tried to play around and add some encoding properties but so far no luck. I recently added below value but data are still not being encoded in the response

    image


    #API-Management
    #API-Gateway
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: OpenAPI specification using Salesfoce Query (SOQL)

    Posted Thu December 08, 2022 11:03 PM

    Apologies for the late reply.
    Can you please get a brainstorming ticket created for us to investigate this further.


    #webMethods
    #API-Management
    #API-Gateway
    #Integration-Server-and-ESB