Questions tagged [apikit]

42 questions
2
votes
0 answers

Mule-APIkit with baseUriParameter truncates resource path thus erroring out as 'resource not found'

Can anyone please suggest/correct me here on how to get APIkit Router working with baseUriParameter. If the path in the HTTP Listener Connector is hardcoded like /api/process/30001/*, it all works fine. APIKit Router is able to route the requested…
stof
  • 21
  • 4
2
votes
2 answers

How to deploy RAML API's to Mule standalone

I have created an API using RAML and I have been able to expose it as a Web site on my local Windows laptop. However, now I need to install Mule standalone on a server an install it there. The tutorial provided for this starts with downloading an…
fificito
  • 69
  • 1
  • 7
1
vote
2 answers

Mule 4 - flows suddently stopped initializing, warning about some mysterious yml file occurs, MUnit test started throwing unexpected errors

I was working on my Mule 4 application today, and suddenly my Anypoint Studio went crazy. When I was trying to run my application, i recieved an error that a port used by the application is already in use. Nothing unusual, but when I have restarted…
hc0re
  • 1,806
  • 2
  • 26
  • 61
1
vote
1 answer

How to raise error code 503 service unavailable in mule application?

I am using Anypoint Studio 6.1 and Mule 3.8.1 and want to send a custom message to the user when a 503 error has occurred. I am using the APIKit exception mapping and using java class javax.ws.rs.ServiceUnavailableException as the expected type to…
user3165854
  • 1,505
  • 8
  • 48
  • 100
1
vote
2 answers

JSON Schema Validation in Mule: get failing field

I am using APIkit in Mule with RAML 0.8 and a JSON schema, as follows (example): { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "cart": { "title": "", …
xnacho
  • 51
  • 1
  • 6
1
vote
1 answer

Mule APIKit Include Reason in 400 error

I have a raml doc the specifies my request data structure with a field like the following: "EstInstallDate": { "description": "the estimated date that the installation will be completed", "type": "string", "format": "date" } this is…
Nathan Tregillus
  • 6,006
  • 3
  • 52
  • 91
1
vote
1 answer

Anypoint Studio can't load raml for APIKit, but it also says nothing is wrong with the raml file

I am having a hard time identifying why the following raml does not load when I attempt to create a new project: #%RAML 0.8 title: MyMuleAPI API version: v1 baseUri: https://localhost/api/v1 securitySchemes: - oauth_2_0: description: | …
Nathan Tregillus
  • 6,006
  • 3
  • 52
  • 91
0
votes
0 answers

Error while using import file in the XSD of RAML design with APIKIt router

Error: File Not Found: C:\work\AnypointStudio\plugins\org.mule.tooling.server.4.4.0.ee_7.11.0.202206241916\mule\bin\data-type\test.xsd (The system cannot find the path specified) while calling API, APIKit router giving above issue. I have used two…
priyanka
  • 1
  • 1
0
votes
1 answer

"Errors while creating SerializableLazyValue by reflection" when trying to set secure property as attribute before APIKit

As explained in this question, I must set some attributes before APIKit. However, one of them is a secure property: %dw 2.0 output application/java --- ( (attributes - "headers" - "maskedRequestPath") ++ ({ …
mhery
  • 2,097
  • 4
  • 26
  • 35
0
votes
1 answer

"ByteArrayBasedCursorStreamProvider cannot be cast to HttpRequestAttributes" when trying to set attributes before APIKit

I have a requirement on my REST API where I might set some attributes before APIKit if some condition is met (because we have a logger which must write this information). Following this solution, I created the script below to set Attribute object…
mhery
  • 2,097
  • 4
  • 26
  • 35
0
votes
1 answer

Get the Action Value of APIKit Router Mapping in Mule 4

Say this is my router config
Thinker-101
  • 554
  • 5
  • 19
0
votes
1 answer

Facing problem while running api in Mule 3

STILL NOT SOLVED, DOES ANYONE KNOW HOW TO SOLVE IT. the application must be running in mule 3.9.1. thanks everyone I did a RAML design in anypoint studio and that works fine with runtime 4.3. However, this same design must also run in runtime 3.9.1.…
Makavelines
  • 111
  • 6
0
votes
1 answer

Mule 4: uriParams size is showing as 0 even though it is there

So I created a endpoint inside the raml file such as: /proxy: /{proxyDestinationTarget}: uriParameters: proxyDestinationTarget: type: string example: "myurl.com" post: description: Pass through operation…
aquile hollins
  • 161
  • 1
  • 8
0
votes
1 answer

Mulesoft - I want to send an e-mail with a file attached that was posted to my API endpoint

Using Mule 4.x, I would like to have my API set up with an HTTP POST method endpoint, that allows a user to post form data containing a file. Then I would like to take that file, and e-mail it with the posted file as an attachment on the…
Topher
  • 7
  • 4
0
votes
2 answers

Unable to generate flows from RAML in Anypoint Studio

I am getting an error when I attempt to import a local RAML API definition into Mulesoft, it gives a very vague error that the API definition file exists and that API Kit is pointing to it. This is the error message I get The project is targeting…
Matthew Pigram
  • 1,400
  • 3
  • 25
  • 65
1
2 3