app/controllers/vsac_util_controller.rb
##
# GET /vsac_util/program_release_names/:program
#
# Gets the list of release names for a given program from VSAC and returns in JSON the following object to
# contain the list:
# { programName: String, releaseNames: Array<String> }
GET /vsac_util/program_release_names/:program
Gets the list of release names for a given program from VSAC and returns in JSON the following object to
contain the list:
{ programName: String, releaseNames: Array }
GET / vsac_util / program_release_names / : program Gets the list of release names for a given program from VSAC and returns in JSON the following object to contain the list : { programName : String releaseNames : Array }
def program_release_names
    api = Util::VSAC::VSACAPI.new(config: APP_CONFIG['vsac'])
    begin
      response = {
        programName: params[:program],
        releaseNames: api.get_program_release_names(params[:program])
      }
      render :json => response
    rescue Util::VSAC::VSACProgramNotFoundError
      render :json => { error: 'Program not found.' }, :status => 404
    end
  end
def program_release_names api = Util :: VSAC :: VSACAPI . new ( config : APP_CONFIG [ 'vsac' ] ) begin response = { programName : params [ :program ] , releaseNames : api . get_program_release_names ( params [ :program ] ) } render :json => response rescue Util :: VSAC :: VSACProgramNotFoundError render :json => { error : 'Program not found.' } , :status => 404 end end
GET /vsac_util/program_release_names/:program
Gets the list of release names for a given program from VSAC and returns in JSON the following object to
contain the list:
{ programName: String, releaseNames: Array<String> }
GET / vsac_util / program_release_names / : program Gets the list of release names for a given program from VSAC and returns in JSON the following object to contain the list : { programName : String releaseNames : Array<String > }