Skip to content

Commit b0662c3

Browse files
committedMar 1, 2023
Updated documentation for POST /v1/bom
Added a sample of autocreating project as a child to some other project/version Signed-off-by: Anton Soroka <hunroll16@gmail.com>
1 parent 26e4345 commit b0662c3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎docs/_docs/usage/cicd.md

+14
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,17 @@ curl -X "POST" "http://dtrack.example.com/api/v1/bom" \
7373
-F "projectVersion=xxxx" \
7474
-F "bom=@target/bom.xml"
7575
```
76+
77+
You can also create a project as a child to some other project if you add `parentUUID` or `parentName` parameters.
78+
79+
```bash
80+
curl -X "POST" "http://dtrack.example.com/api/v1/bom" \
81+
-H 'Content-Type: multipart/form-data' \
82+
-H "X-Api-Key: xxxxxxx" \
83+
-F "autoCreate=true" \
84+
-F "projectName=xxxx" \
85+
-F "projectVersion=xxxx.SNAPSHOT" \
86+
-F "parentName=xxxx" \
87+
-F "parentVersion=xxxx" \
88+
-F "bom=@target/bom.xml"
89+
```

0 commit comments

Comments
 (0)
Please sign in to comment.