Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provides web northbound API #218

Merged
merged 6 commits into from
Sep 28, 2023
Merged

Provides web northbound API #218

merged 6 commits into from
Sep 28, 2023

Conversation

Tatsuki3939
Copy link
Contributor

@Tatsuki3939 Tatsuki3939 commented Sep 26, 2023

A request to add a http interface to the northbound interface has been addressed.
API specifications will be added to the getting-started section of the community site.

@Tatsuki3939 Tatsuki3939 force-pushed the add/http branch 2 times, most recently from 5b96046 to 8494a8e Compare September 27, 2023 04:28
res := make([]interface{}, 0)
for _, v := range req.Paths {
path := filepath.Clean(filepath.Join(rootpath, v, "input.cue"))
buf, err := os.ReadFile(path)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).
@Tatsuki3939 Tatsuki3939 changed the title feat: Add http to northbound interface Feature/#219 Sep 27, 2023
@Tatsuki3939 Tatsuki3939 changed the title Feature/#219 Add http to northbound interface Sep 27, 2023
@Tatsuki3939 Tatsuki3939 changed the title Add http to northbound interface Provides web northbound API Sep 27, 2023
reqBody.Path = req["path"].(string)
reqBody.Value = req["value"].(map[string]interface{})
inputPath := filepath.Clean(filepath.Join(scfg.ConfigRootPath, reqBody.Path, "input.cue"))
buf, err := os.ReadFile(inputPath)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant