Skip to content

Commit

Permalink
sr SubjectVersions calls pathSubjectVersion
Browse files Browse the repository at this point in the history
SubjectVersions calls pathSubjectVersions instead of pathSubject to build a path to retrieve all versions for a given subject.
  • Loading branch information
poulikov authored Mar 6, 2024
1 parent 33923b6 commit 892db71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sr/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func pathMode(subject string) string {
func (cl *Client) SubjectVersions(ctx context.Context, subject string) ([]int, error) {
// GET /subjects/{subject}/versions
var versions []int
err := cl.get(ctx, pathSubject(subject), &versions)
err := cl.get(ctx, pathSubjectWithVersion(subject), &versions)
return versions, err
}

Expand Down

0 comments on commit 892db71

Please sign in to comment.