diff --git a/app/controllers/api/v1/accreditation_center/contacts_controller.rb b/app/controllers/api/v1/accreditation_center/contacts_controller.rb index 0ab8665e3..c920c1ad2 100644 --- a/app/controllers/api/v1/accreditation_center/contacts_controller.rb +++ b/app/controllers/api/v1/accreditation_center/contacts_controller.rb @@ -8,8 +8,8 @@ module Api @contact = Contact.find_by(code: params[:id]) if @contact - render json: { contact: Serializers::Repp::Contact.new(@contact, - show_address: false).to_json }, + render json: { code: 1000, contact: Serializers::Repp::Contact.new(@contact, + show_address: false).to_json }, status: :found else render json: { errors: 'Contact not found' }, status: :not_found diff --git a/app/controllers/api/v1/accreditation_center/domains_controller.rb b/app/controllers/api/v1/accreditation_center/domains_controller.rb index 6c6a753df..80337bd28 100644 --- a/app/controllers/api/v1/accreditation_center/domains_controller.rb +++ b/app/controllers/api/v1/accreditation_center/domains_controller.rb @@ -8,8 +8,8 @@ module Api @domain = Domain.find_by(name: params[:name]) if @domain - render json: { domain: Serializers::Repp::Domain.new(@domain, - sponsored: true).to_json }, + render json: { code: 1000, domain: Serializers::Repp::Domain.new(@domain, + sponsored: true).to_json }, status: :found else render json: { errors: 'Domain not found' }, status: :not_found