brianmc / raml-store

This project provides an persistent store for RAML files created using then embedded API Designer
MIT License
51 stars 18 forks source link

Not possible to save the .raml-files and no console #6

Open igorkosta opened 10 years ago

igorkosta commented 10 years ago

Hi Brian,

thank you very much for awesome work! I'm trying to make the raml-store work and couldn't make until now. Maybe you can point me into the right direction. I added all the necessary bower-components from index.html to sample-designer.html. I see the samlple-designer in the browser but I can't save anything and there is no console, where I can try my raml out.

Cheers Igor

hadesbox commented 10 years ago

So I came to the same conclussion, and the problem is that the current release of API Designer is not compatible anymore (out of the box) with raml-store.. this is due major refactoring in the API Designer code base, some files doesnt even exist anymore like:

GET http://localhost:9013/vendor/styles/font-awesome.css 404 (Not Found) sample-designer.html:11 GET http://localhost:9013/styles/css/main.css 404 (Not Found) sample-designer.html:18 GET http://localhost:9013/styles/css/shelf.css 404 (Not Found) sample-designer.html:19 GET http://localhost:9013/styles/css/errors.css 404 (Not Found) sample-designer.html:20 GET http://localhost:9013/styles/css/file-browser.css 404 (Not Found) sample-designer.html:21 GET http://localhost:9013/styles/css/console-overrides.css 404 (Not Found) sample-designer.html:22 GET http://localhost:9013/styles/css/code-mirror-overrides.css 404 (Not Found) sample-designer.html:23 GET http://localhost:9013/styles/css/font-awesome-overrides.css 404 (Not Found) sample-designer.html:24 GET http://localhost:9013/styles/css/modal.css 404 (Not Found) sample-designer.html:25 GET http://localhost:9013/scripts/services/request-executor.js 404 (Not Found) sample-designer.html:73 GET http://localhost:9013/scripts/services/request-builder.js 404 (Not Found) sample-designer.html:74 GET http://localhost:9013/scripts/services/mock-file-system.js 404 (Not Found)

Ill try to HUNT for the right version/commit in the APIDesigner repo and keep you informed.

jewelsjacobs commented 10 years ago

Any update on this (as of 6 hours ago! lol)?

Workarounds, etc?

I really want to use this.

hadesbox commented 10 years ago

Not yet... ill look into it probably tomorow. There are two solutions

A. Find the right version/commit in the apidesigner repo, either using the git bisect or find a commit with similar date to ramlstore last commit.

B. Fix/rewrite ramlstore ro work with latest version of apidesigner.

brianmc commented 10 years ago

Apologies for not responding sooner on this. I will try to do option B tonight/tomorrow.

Brian

brianmc commented 10 years ago

There've been some pretty major changes in the api-designer repo. The right way to switch in the DB backing store is not really inline in the html but rather as a pluggable ramlRepository, which the design supports. I'm up for giving that a go at the weekend if you can wait for it.

Brian

jewelsjacobs commented 10 years ago

I temporarily hacked up an app to get the raml-store and api desiner to work: https://github.com/jewelsjacobs/raml-store-with-api-designer

It's basically a combo of the current raml-store project and the RAML API Designer files from the dist folder served on one instance of express.

No need to configure any files or run any grunt tasks.

The beta mock service does not work yet.

hadesbox commented 10 years ago

Hi Jewels,

I have made more change on top of your project...

https://github.com/hadesbox/raml-api-designer-store if you think its valuable I can send you a pull-request.

I also made some changes into the API Console, but the doc its not finished yet.

Cheers!

jewelsjacobs commented 10 years ago

Hi @hadesbox,

Looks really cool :)

I'm not really supporting that app anymore cause I created a new app that uses raml-store + api designer + osprey: https://github.com/jewelsjacobs/raml

Osprey serves the apis defined in a RAML file like you've got going on in your app plus uses API console.

I don't have a cool login screen though!

I've got some stuff on my todo list for the app:

Do you mind forking that and putting in a PR for any changes you'd like to see?

Thanks for the interest! :)

krsyoung commented 9 years ago

Hey folks, just curious if there are any plans moving forward here? I have hit the same challenges as described here when trying to integrate the raml-store with the API Designer.

For the time being I am using @jewelsjacobs mashup (https://github.com/jewelsjacobs/raml) which is working like a charm.