Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions webservices/api_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
api = restful.Api(v1)
api.representations['application/json'] = util.output_json
SHOW_TEST_F1 = env.get_credential('FEC_SHOW_TEST_F1', False)
RULEMAKINGS_FEATURE = env.get_credential('FEC_FEATURE_RULEMAKINGS', False)


api.add_resource(national_party.NationalParty_ScheduleAView, '/national_party/schedule_a/')
Expand Down Expand Up @@ -194,8 +193,7 @@
api.add_resource(legal.UniversalSearch, '/legal/search/')
api.add_resource(legal.GetLegalCitation, '/legal/citation/<citation_type>/<citation>')
api.add_resource(legal.GetLegalDocument, '/legal/docs/<doc_type>/<no>')
if RULEMAKINGS_FEATURE:
api.add_resource(rulemaking.RulemakingSearch, '/rulemaking/search/')
api.add_resource(rulemaking.RulemakingSearch, '/rulemaking/search/')
api.add_resource(operations_log.OperationsLogView, '/operations-log/')
api.add_resource(presidential.PresidentialByCandidateView, '/presidential/contributions/by_candidate/')
api.add_resource(presidential.PresidentialSummaryView, '/presidential/financial_summary/')
Expand Down
4 changes: 1 addition & 3 deletions webservices/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
RESTRICT_MESSAGE = "We apologize for the inconvenience, but we are temporarily " \
"blocking API traffic. Please contact apiinfo@fec.gov if this is an urgent issue."
SHOW_TEST_F1 = env.get_credential('FEC_SHOW_TEST_F1', False)
RULEMAKINGS_FEATURE = env.get_credential('FEC_FEATURE_RULEMAKINGS', False)


def sqla_conn_string():
Expand Down Expand Up @@ -272,8 +271,7 @@ def pop_context(task_id, task, *args, **kwargs):
apidoc.register(operations_log.OperationsLogView, blueprint='v1')
apidoc.register(legal.UniversalSearch, blueprint='v1')
apidoc.register(legal.GetLegalDocument, blueprint='v1')
if RULEMAKINGS_FEATURE:
apidoc.register(rulemaking.RulemakingSearch, blueprint='v1')
apidoc.register(rulemaking.RulemakingSearch, blueprint='v1')
apidoc.register(candidate_aggregates.CandidateTotalAggregateView, blueprint='v1')
apidoc.register(spending_by_others.ECTotalsByCandidateView, blueprint='v1')
apidoc.register(spending_by_others.IETotalsByCandidateView, blueprint='v1')
Expand Down