Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    ioleo
    @ioleo
    scratch that all
    I've just discovered #%RAML 1.0 ResourceType :D
    just an update
    @loostro can you contribute you docker image on top of my version, please? the one you used is very out of date
    you can directly publish it into my repo if you like so we keep things together
    ioleo
    @ioleo
    Hi, I'll have a look, thanks
    Currently the image is on 0.3.2 which was the latest tag published to npm
    Though if I recall correctly - github contains 0.4.x releases already, I'll see if this can be easily upgraded
    Christian Vogel
    @sichvoge
    My version is always using the latest master, thats it 0.4.1
    Adam Lynch
    @adam-lynch
    Got some questions about the spec mostly if someone's online. Having trouble with my definition in api-designer
    Adam Lynch
    @adam-lynch
    For example: I have a resourceType in its own file. Is there any way I can use a trait here that's defined elsewhere?
    Christian Vogel
    @sichvoge

    sure, using libraries is the most convenient way; but you can also just do:

    rt.raml

    #%RAML 1.0 ResourceType
    
    get:
      is: [ paging ]

    api.raml

    #%RAML 1.0 
    title: Test
    
    resourceTypes: 
      collection: !include rt.raml
    
    traits:
      paging: !include paging.raml
    
    /resource:
      type: collection
    Adam Lynch
    @adam-lynch
    @sichvoge I think I might be misunderstanding some things. I have a root doc, resourceTypes each in their own file, libraries each in their own file, traits each in their own file. I don't have traits in a library
    an example trait is canResponsePropertiesBeExcluded... it describe a uriParameter
    an example resourceType is listOfResources which looks like this plus more:
    #%RAML 1.0 ResourceType
    
    uses:
      expanded: ../libraries/expanded.raml
    
    traits:
      canIdsBeExpanded: !include ../traits/canIdsBeExpanded.raml
      canResponsePropertiesBeExcluded: !include ../traits/canResponsePropertiesBeExcluded.raml
      isPaginated: !include ../traits/isPaginated.raml
      isRateLimited: !include ../traits/isRateLimited.raml
    get:
    # description: Get a
      description: Get << label | !pluralize >>
      is: [canIdsBeExpanded, canResponsePropertiesBeExcluded, isPaginated, isRateLimited]
      responses:
        200:
          body:
            application/json:
              data: << outboundType >>[]
              expanded: expanded.Expanded
    my libraries just contain multiple types... like users.raml contain BaseUser, InboundUser (a less strict one for POSTs & PUTs), OutboundUser (strict & adds on some properties like ID)
    Christian Vogel
    @sichvoge
    in my above example, you might get an error in the designer since its parsing the fragment and does not know what "paging" is, but in the context of your root RAML, it is valid
    Adam Lynch
    @adam-lynch
    it only just loaded... had me confused for a sec :)
    Christian Vogel
    @sichvoge
    a library can also contain traits and resourcetypes
    :D
    Adam Lynch
    @adam-lynch
    So if I want to use a trait in a resourceType I have to either put the trait in a library and use that in the resourceType or put them both in the same library?
    @sichvoge ^ :)
    Christian Vogel
    @sichvoge
    you can put them both into a library, you can out both into a fragment and use a library to connect them, or use a root RAML file to do the job and ignore errors on the fragments. :D i would probably put them both into a library or create multiple domain specific libraries and reference items inside that library to each other
    Adam Lynch
    @adam-lynch
    Found a nice mistake... I used uriParameters in traits whereas it should be queryParameters
    Thanks @sichvoge I've gotten a lot further now
    Christian Vogel
    @sichvoge
    you are welcome!
    AlexKovalskyi
    @AlexKovalskyi
    raml.jpg
    Can someone help me,? i got this error after i had tried to run designer
    Christian Vogel
    @sichvoge
    did you run npm install?
    AlexKovalskyi
    @AlexKovalskyi
    yes, i ran npm install after that wrote api-designer and got that error.
    lorenguo
    @lorenguo
    you need run npm install request
    Paulo Renato
    @Exadra37
    so not conversation since 6 months... is the Api Designer deprecated?
    Maciej Musialek
    @gempio
    Probably
    looking for people as well
    I'd like to introduce an upload folder feature. I even managed to make some progress on my local copy though. I'll make a pull request later on anyway but wanted to know the likelihood of it going through.
    Maciej Musialek
    @gempio
    Anyone still watching?
    Maciej Musialek
    @gempio
    Anyone still watching
    Paulo Renato
    @Exadra37
    I think they deprecated this project
    they are releasing a new product that integrates with Open APi, ex Swagger
    they mainly target enterprise customers, thus don't expect to much attention to wider audience.
    Maciej Musialek
    @gempio
    That makes me sad :(
    Aurélien LOMBARDO
    @alombardo83
    Hi everybody, I have a question about some SF connectors in V4
    I would like to use "List metadata" or "Read metadata" on PicklistValue to be able to manage some dictionaries data
    but I get an error message : Something went wrong while sending data to Salesforce.
    <?xml version="1.0" encoding="UTF-8"?>
    
    <mule xmlns:apikit="http://www.mulesoft.org/schema/mule/mule-apikit" xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core"
        xmlns:salesforce="http://www.mulesoft.org/schema/mule/salesforce"
        xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
    http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
    http://www.mulesoft.org/schema/mule/salesforce http://www.mulesoft.org/schema/mule/salesforce/current/mule-salesforce.xsd
    http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd
    http://www.mulesoft.org/schema/mule/mule-apikit http://www.mulesoft.org/schema/mule/mule-apikit/current/mule-apikit.xsd">
        <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="71eb0799-67b5-49c8-b045-65ccb303bedb" >
            <http:listener-connection host="0.0.0.0" port="8081" />
        </http:listener-config>
        <salesforce:sfdc-config name="Salesforce_Config" doc:name="Salesforce Config" doc:id="d5ac0fc9-f78f-4768-a888-315cec634673" >
            <salesforce:basic-connection username="XXX" password="YYY" securityToken="ZZZ" url="https://test.salesforce.com/services/Soap/u/42.0" />
        </salesforce:sfdc-config>
        <flow name="testFlow" doc:id="a2b69657-7b1a-4096-89be-8f164e29cb49" >
            <http:listener doc:name="Listener" doc:id="756a6c9a-1879-4075-bcb2-d531479c85bf" config-ref="HTTP_Listener_config" path="/test/*"/>
            <salesforce:list-metadata type="PicklistValue" doc:name="List metadata" doc:id="ff7e76d2-4e2c-4015-9019-5c60df913290" config-ref="Salesforce_Config"/>
            <ee:transform doc:name="Transform Message" doc:id="a1b8ac5f-b069-4df1-8e09-adc9fb4b93f8" >
                <ee:message >
                    <ee:set-payload ><![CDATA[%dw 2.0
    output application/json
    ---
    {
        "fullName": payload.fullName
    }]]></ee:set-payload>
                </ee:message>
            </ee:transform>
        </flow>
    </mule>
    Paulo Renato
    @Exadra37
    This channel is dead and is also not for the type of question you are asking... better you try to find their salesforce channel ;)
    @tul
    @atulmundaware
    hi everyone
    i am trying to create connectivity between mule app and salesforce using oauth
    can anyone help