src/store/modules/schemas.js
/**
   * Fetch all available versions of the given subject.
   * @param  {String} subject Subject name
   */
Fetch all available versions of the given subject.
@param  {String} subject Subject name
Fetch all available versions of the given subject . @param { String } subject Subject name
async fetchVersions ({commit}, subject) {
    const {data: versions} = await clusters.request(CLUSTER_SCHEMA_REGISTRY, {
      accept: SCHEMA_CONTENT_JSON
    }).get(`/subjects/${subject}/versions`)
    commit('setVersions', {
      subject,
      versions
    })
  }
async fetchVersions ( { commit } , subject ) { const { data : versions } = await clusters . request ( CLUSTER_SCHEMA_REGISTRY , { accept : SCHEMA_CONTENT_JSON } ) . get ( ` ${ subject } ` ) commit ( 'setVersions' , { subject , versions } ) }
Fetch all available versions of the given subject.
Fetch all available versions of the given subject .