mulesoft / apikit

APIkit is a tool for building REST APIs using MULE Runtime
Other
17 stars 52 forks source link

API console with gray page. And not loading the data. #104

Closed thirulok closed 8 years ago

thirulok commented 8 years ago

I tried to build the example build-rest-api-with-xml-payload.

API console is coming with gray page. Tried in browser. Same issue..

api-xml.txt

console-message.docx

empty-api-console.docx

Can you help ?

thank you

FedeAmdan commented 8 years ago

Hi @thirulok the problem is that the javascript parser is considering your raml file invalid. We are using the java and the javascript parsers in apikit (the js one inside of the console, and the other one in the eclipse editor and the mule module). We are working a lot to provide the same experience on both parsers, and in the next release you will note the difference. To solve your problem, you will have to use the api-designer (which uses the js parser) to check the errors and fix them, so you will have the whole end-to-end experience working. To use the api-designer, you can follow this tutorial https://docs.mulesoft.com/api-manager/designing-your-api

thirulok commented 8 years ago

Hi Amdan :

Thank you and I’ll check it.

Bala

From: Federico Amdan [mailto:notifications@github.com] Sent: Monday, August 1, 2016 10:57 AM To: mulesoft/apikit apikit@noreply.github.com Cc: thirulok bala@trilokinc.com; Mention mention@noreply.github.com Subject: Re: [mulesoft/apikit] API console with gray page. And not loading the data. (#104)

Hi @thirulok https://github.com/thirulok the problem is that the javascript parser is considering your raml file invalid. We are using the java and the javascript parsers in apikit (the js one inside of the console, and the other one in the eclipse editor and the mule module). We are working a lot to provide the same experience on both parsers, and in the next release you will note the difference. To solve your problem, you will have to use the api-designer (which uses the js parser) to check the errors and fix them, so you will have the whole end-to-end experience working. To use the api-designer, you can follow this tutorial https://docs.mulesoft.com/api-manager/designing-your-api

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mulesoft/apikit/issues/104#issuecomment-236605522 , or mute the thread https://github.com/notifications/unsubscribe-auth/ATzNBr6COKxKJOqWppmmEtYtSyjtQ5Heks5qbglLgaJpZM4JZNTh . https://github.com/notifications/beacon/ATzNBjVkjjDYgPG4lyoWGwn0cuXkCNnGks5qbglLgaJpZM4JZNTh.gif

thirulok commented 8 years ago

Hi FedeAmdan :+1: Thank you. Issue was that I was using the RAML 0.8 and changed to RAML 1.0.

It fixed the issue.

thank you for your help.

%RAML 1.0

thirulok commented 8 years ago

the change was in API.raml file. (first line).