Automatic generation of schema definition files for standardized op-mode scripts is addressed in T4544. Here we complete the implementation by defining the directives 'genopquery' and 'genopmutation' which dynamically generate resolvers for any script present in the list of scripts rewritten in standardized form. Once scripts are updated to the new format, they can be added to the list, and after the schema definition generation script is run (on service start/restart), they will automatically be exposed by the http-api for requests.
Description
Description
Details
Details
- Difficulty level
- Unknown (require assessment)
- Version
- vyos-1.4
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Perfectly compatible
- Issue type
- Feature (new functionality)
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | dmbaturin | T2768 Define a high level HTTP API | |||
Resolved | ENHANCEMENT | jestabro | T3993 Extend HTTP API GraphQL support | ||
Resolved | FEATURE REQUEST | dmbaturin | T2719 Standardized op mode script structure | ||
Resolved | ENHANCEMENT | jestabro | T4544 Generate schema definitions from standardized op-mode scripts | ||
Resolved | ENHANCEMENT | jestabro | T4554 Implement GraphQL resolvers for standardized op-mode scripts | ||
Resolved | BUG | jestabro | T4580 Handle the case of op-mode file names with hyphens in GraphQL schema/resolver generation |