Skip to content

Commit

Permalink
Refactor(api): Simplified url
Browse files Browse the repository at this point in the history
  • Loading branch information
Petzys committed Sep 17, 2024
1 parent 8400ee5 commit 331f8c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ info:
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 0.0.1
paths:
/api/v1/image/get:
/api/v1/image:
post:
summary: Generate CBOM from existing image
summary: Generate CBOM from a Container Image
requestBody:
required: true
content:
Expand All @@ -17,7 +17,7 @@ paths:
type: object
properties:
image:
description: Identifier for Image
description: Identifier for the Container Image
example: "nginx"
type: string
plugins:
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func Serve() {
r.SetTrustedProxies(nil)
v1 := r.Group("/api/v1")
{
v1.POST("/image/get", imageGet)
v1.POST("/image", imageGet)
}
r.Run(":8080") // listen and serve on 0.0.0.0:8080
}
Expand Down

0 comments on commit 331f8c1

Please sign in to comment.