@@ -84,7 +84,7 @@ func (cs ComponentService) Get(ctx context.Context, componentUUID uuid.UUID) (c
8484 return
8585 }
8686
87- req , err := cs .client .newRequest (ctx , http .MethodGet , fmt .Sprintf ("/ api/v1/component/%s" , componentUUID ))
87+ req , err := cs .client .newRequest (ctx , http .MethodGet , fmt .Sprintf ("api/v1/component/%s" , componentUUID ))
8888 if err != nil {
8989 return
9090 }
@@ -99,7 +99,7 @@ func (cs ComponentService) GetAll(ctx context.Context, projectUUID uuid.UUID, po
9999 return
100100 }
101101
102- req , err := cs .client .newRequest (ctx , http .MethodGet , fmt .Sprintf ("/ api/v1/component/project/%s" , projectUUID ), withPageOptions (po ), withComponentFilterOptions (filterOptions ))
102+ req , err := cs .client .newRequest (ctx , http .MethodGet , fmt .Sprintf ("api/v1/component/project/%s" , projectUUID ), withPageOptions (po ), withComponentFilterOptions (filterOptions ))
103103 if err != nil {
104104 return
105105 }
@@ -133,7 +133,7 @@ func (cs ComponentService) Create(ctx context.Context, projectUUID uuid.UUID, co
133133 return
134134 }
135135
136- req , err := cs .client .newRequest (ctx , http .MethodPut , fmt .Sprintf ("/ api/v1/component/project/%s" , projectUUID ), withBody (component ))
136+ req , err := cs .client .newRequest (ctx , http .MethodPut , fmt .Sprintf ("api/v1/component/project/%s" , projectUUID ), withBody (component ))
137137 if err != nil {
138138 return
139139 }
@@ -148,7 +148,7 @@ func (cs ComponentService) Update(ctx context.Context, component Component) (c C
148148 return
149149 }
150150
151- req , err := cs .client .newRequest (ctx , http .MethodPost , "/ api/v1/component" , withBody (component ))
151+ req , err := cs .client .newRequest (ctx , http .MethodPost , "api/v1/component" , withBody (component ))
152152 if err != nil {
153153 return
154154 }
@@ -163,7 +163,7 @@ func (cs ComponentService) Delete(ctx context.Context, componentUUID uuid.UUID)
163163 return
164164 }
165165
166- req , err := cs .client .newRequest (ctx , http .MethodDelete , fmt .Sprintf ("/ api/v1/component/%s" , componentUUID ))
166+ req , err := cs .client .newRequest (ctx , http .MethodDelete , fmt .Sprintf ("api/v1/component/%s" , componentUUID ))
167167 if err != nil {
168168 return
169169 }
@@ -178,7 +178,7 @@ func (cs ComponentService) GetProperties(ctx context.Context, componentUUID uuid
178178 return
179179 }
180180
181- req , err := cs .client .newRequest (ctx , http .MethodGet , fmt .Sprintf ("/ api/v1/component/%s/property" , componentUUID ))
181+ req , err := cs .client .newRequest (ctx , http .MethodGet , fmt .Sprintf ("api/v1/component/%s/property" , componentUUID ))
182182 if err != nil {
183183 return
184184 }
@@ -193,7 +193,7 @@ func (cs ComponentService) CreateProperty(ctx context.Context, componentUUID uui
193193 return
194194 }
195195
196- req , err := cs .client .newRequest (ctx , http .MethodPut , fmt .Sprintf ("/ api/v1/component/%s/property" , componentUUID ), withBody (property ))
196+ req , err := cs .client .newRequest (ctx , http .MethodPut , fmt .Sprintf ("api/v1/component/%s/property" , componentUUID ), withBody (property ))
197197 if err != nil {
198198 return
199199 }
@@ -208,7 +208,7 @@ func (cs ComponentService) DeleteProperty(ctx context.Context, componentUUID, pr
208208 return
209209 }
210210
211- req , err := cs .client .newRequest (ctx , http .MethodDelete , fmt .Sprintf ("/ api/v1/component/%s/property/%s" , componentUUID , propertyUUID ))
211+ req , err := cs .client .newRequest (ctx , http .MethodDelete , fmt .Sprintf ("api/v1/component/%s/property/%s" , componentUUID , propertyUUID ))
212212 if err != nil {
213213 return
214214 }
@@ -223,7 +223,7 @@ func (cs ComponentService) GetByHash(ctx context.Context, hash string, po PageOp
223223 return
224224 }
225225
226- req , err := cs .client .newRequest (ctx , http .MethodGet , fmt .Sprintf ("/ api/v1/component/hash/%s" , hash ), withPageOptions (po ), withSortOptions (so ))
226+ req , err := cs .client .newRequest (ctx , http .MethodGet , fmt .Sprintf ("api/v1/component/hash/%s" , hash ), withPageOptions (po ), withSortOptions (so ))
227227 if err != nil {
228228 return
229229 }
@@ -247,7 +247,7 @@ func (cs ComponentService) GetByIdentity(ctx context.Context, po PageOptions, so
247247 return
248248 }
249249
250- req , err := cs .client .newRequest (ctx , http .MethodGet , "/ api/v1/component/identity" , withPageOptions (po ), withSortOptions (so ), withComponentIdentityOptions (io ))
250+ req , err := cs .client .newRequest (ctx , http .MethodGet , "api/v1/component/identity" , withPageOptions (po ), withSortOptions (so ), withComponentIdentityOptions (io ))
251251 if err != nil {
252252 return
253253 }
@@ -296,7 +296,7 @@ func (cs ComponentService) IdentifyInternal(ctx context.Context) (err error) {
296296 return
297297 }
298298
299- req , err := cs .client .newRequest (ctx , http .MethodGet , "/ api/v1/component/internal/identify" )
299+ req , err := cs .client .newRequest (ctx , http .MethodGet , "api/v1/component/internal/identify" )
300300 if err != nil {
301301 return
302302 }
0 commit comments