advanced-rest-client / arc-electron

Advanced REST Client - Desktop application
Other
1.41k stars 224 forks source link

Allow to define a global/project data model #231

Open jarrodek opened 4 years ago

jarrodek commented 4 years ago

Is your feature request related to a problem? Please describe. It is related to https://github.com/advanced-rest-client/arc-electron/issues/228 - data generators in the body editor. The problem is that the user has to copy a body generator configuration each time even when a body repeats.

Describe the solution you'd like Instead of creating a generator configuration each time allow to define a type globally or in a project. The data model definition describes a data schema. From this model an example can be generated for a body (giving current media type). It also should contain a mapping between a property and Faker.js method.

Additional context The same approach has API Console when generating body example from data type definition. Consider creating AMF model from the ARC data type to reuse the same components for examples generation.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity and is not currently prioritized. It will be closed in a week if no further activity occurs :)

jarrodek commented 2 years ago

The data-side support coming to the application in v18. Probably won't have any UI until at least v20.