// GetSubjectVersions returns all the versions of a subject(schema) based on its name.
GetSubjectVersions returns all the versions of a subject(schema) based on its name.
// GetSubjectVersions returns all the versions of a subject ( schema ) based on its name .
func (c *Client) GetSubjectVersions(subject string) (versions []int, err error) {
	if subject == "" {
		err = errRequired("subject")
		return
	}
	path := fmt.Sprintf(subjectPath, subject+"/versions")
	resp, respErr := c.Do(http.MethodGet, path, "", nil, schemaAPIOption)
	if respErr != nil {
		err = respErr
		return
	}
	err = c.ReadJSON(resp, &versions)
	return
}
func ( c * Client ) GetSubjectVersions ( subject string ) ( versions [ ] int , err error ) { if subject == " " { err = errRequired ( " " ) return } path := fmt . Sprintf ( subjectPath , subject + " " ) resp , respErr := c . Do ( http . MethodGet , path , " " , nil , schemaAPIOption ) if respErr != nil { err = respErr return } err = c . ReadJSON ( resp , & versions ) return }
GetSubjectVersions returns all the versions of a subject(schema) based on its name.
GetSubjectVersions returns all the versions of a subject ( schema ) based on its name .
// # List all versions of a particular subject // GET /api/proxy-sr/subjects/(string: subject)/versions