mock-node icon indicating copy to clipboard operation
mock-node copied to clipboard

RAML to config converter or config syntax specification

Open nwwells opened this issue 9 years ago • 3 comments

This project looks awesome! Are there any plans to offer a RAML -> config conversion? If not, is there a specification or documentation on the config syntax?

nwwells avatar Jun 02 '16 13:06 nwwells

Thanks,

The routes and dynamic stub configuration of a route are in the config.json file in the repo root, the stubs themselves are in the stubs/ folder. I will write a wiki explaining more about the configuration.

My hypothesis is that, it is easy to use the client interface at /mocknode to configure the server as this removes the need to restart the server on config changes.

Is there a reason that you choose to change the config.json files manually? Is it because , you have to add a lot of configuration and you find the process tedious?

ianunay avatar Jun 02 '16 14:06 ianunay

Our API server documents it's interface in RAML, one of many ways to document a REST interface in a parseable way. My thought was to convert the RAML into the config file to give a starting point and then to build more config in the UI as necessary. On Thu, Jun 2, 2016 at 10:50 Anunay Inuganti [email protected] wrote:

Thanks,

The routes and dynamic stub configuration of a route are in the config.json file in the repo root, the stubs themselves are in the stubs/ folder. I will write a wiki explaining more about the configuration.

My hypothesis is that, it is easy to use the client interface at /mocknode to configure the server as this removes the need to restart the server on config changes.

Is there a reason that you choose to change the config.json files manually? Is it because , you have to add a lot of configuration and you find the process tedious?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ianunay/mock-node/issues/6#issuecomment-223315850, or mute the thread https://github.com/notifications/unsubscribe/AA_ccefp1dYrKyGBCQ2hzw5hb80beiCRks5qHu20gaJpZM4Isj3Q .

nwwells avatar Jun 03 '16 20:06 nwwells

Ok, I will document the config as soon as I find some time.

Below are the places where the entire config is stored:

config.json

stubs folder

ianunay avatar Jun 03 '16 20:06 ianunay