class Api::AgendasController < ApplicationController
end

class Api::AgendasController < ApplicationController
	def index
		@agendas = Agenda.all

		render json: @agendas
	end

	def show
		@agenda = Agenda.find(params[:id])

		render json: @agenda
	end
end

Add Agenda's Reader Action Methods As APIs
Add Agenda's Reader Action Methods As APIs

Add in both the reeder action methods, show and index, in order use them
for read only APIs, on the Agenda. Also made sure that JSON would be the
only format rendering since the API is going to be render as a JSON.
