Open ninjaguru-git opened 2 years ago
@topguru91-git, yes, these are perfect! The key is to see that Santa Ynez Band of Chumash Indians Land Affirmation Act of 2019
shows up in the 'titles' list, and Santa Ynez Band of Chumash Indians Land Affirmation Act
in the titlesNoYear list.
The fuzzy
endpoint is not absolutely necessary at this point. My idea is that it would be the relevance-based search result from ElasticSearch, or from Postgresql full text search. For example, if a user entered "Federal Risk and Authorization", they would get all titles that have that phrase.
API Response Schemas that you mentioned in README.adoc has some unclear things. So, I attached some implemented API schema samples, and going to confirm API Response Schema correctly.
/bills/titles/116hr2500 Sample Response: (This Endpoint was already implemented. I am going to check with you again if this schema is correct)
{ "titles": { "National Defense Authorization Act for Fiscal Year 2020": [ "116hr7678", "116s1215", "116s1790", "116hr2500", "116hr7112", "116hr7126", "117s2880" ], "To authorize appropriations for fiscal year 2020 for military activities of the Department of Defense, for military construction, and for defense activities of the Department of Energy, to prescribe military personnel strengths for such fiscal year, and for other purposes.": [ "116hres758", "116s1790", "116hr2500" ], "To authorize appropriations for fiscal year 2020 for military activities of the Department of Defense and for military construction, to prescribe military personnel strengths for such fiscal year, and for other purposes.": [ "116hres476", "116s1215", "116hr2500" ], "Military Construction Authorization Act for Fiscal Year 2020": [ "116s1215", "116s1790", "116s2731", "116hr2500" ], "National Defense Strategy Implementation Act": [ "116s1790", "116hr2500", "116hr3233" ], "White Sands National Park Establishment Act": [ "116s871", "116s1790", "115s2797", "116hr2500", "116hr1891" ], "Fair Chance Act": [ "114hr3470", "114s2021", "115hr1905", "116hr8352", "116s387", "116s697", "116s1790", "115s842", "116hr1076", "116hr2500", "116hr1893" ], "Fair Chance to Compete for Jobs Act of 2019": [ "116s387", "116s697", "116s1790", "116hr1076", "116hr2500", "116hr1893" ], "Federal Employee Paid Leave Act": [ "116s1174", "116s1790", "116hr1534", "116hr2500" ], "Fentanyl Sanctions Act": [ "116s1044", "116s1790", "116hr2226", "116hr2483", "116hr2500", "117hr4981" ], "Otto Warmbier North Korea Nuclear Sanctions Act of 2019": [ "116s1790", "116hr2500", "116hr4084" ], "REPAY Act": [ "113s2812", "114s85", "115hr4372", "115hr6296", "115s1176", "116s1790", "117hr2407", "116hr1033", "116hr2500", "117hr3589", "117s821" ], "Restore Honor to Service Members Act": [ "113hr2839", "114hr3068", "113s1956", "114s1766", "115hr2904", "115s1366", "116s1790", "116s1991", "116hr2500", "116hr3517", "117s2759" ], "Return Expenses Paid and Yielded Act": [ "115hr6296", "116s1790", "116hr1033", "116hr2500" ], "Santa Ynez Band of Chumash Indians Land Affirmation Act of 2019": [ "116s1790", "116hr317", "116hr2500" ], "Stop Financing of al-Shabaab Act": [ "116s1790", "116hr2500" ] }, "titlesNoYear": { "National Defense Authorization Act for Fiscal Year 2020": [ "116hr7678", "116s1215", "116s1790", "116hr2500", "116hr7112", "116hr7126", "117s2880" ], "To authorize appropriations for fiscal year 2020 for military activities of the Department of Defense, for military construction, and for defense activities of the Department of Energy, to prescribe military personnel strengths for such fiscal year, and for other purposes.": [ "116hres758", "116s1790", "116hr2500" ], "To authorize appropriations for fiscal year 2020 for military activities of the Department of Defense and for military construction, to prescribe military personnel strengths for such fiscal year, and for other purposes.": [ "116hres476", "116s1215", "116hr2500" ], "Military Construction Authorization Act for Fiscal Year 2020": [ "116s1215", "116s1790", "116s2731", "116hr2500" ], "National Defense Strategy Implementation Act": [ "116s1790", "116hr2500", "116hr3233" ], "White Sands National Park Establishment Act": [ "116s871", "116s1790", "115s2797", "116hr2500", "116hr1891" ], "Fair Chance Act": [ "114hr3470", "114s2021", "115hr1905", "116hr8352", "116s387", "116s697", "116s1790", "115s842", "116hr1076", "116hr2500", "116hr1893" ], "Fair Chance to Compete for Jobs Act": [ "114hr3470", "114s2021", "115hr1905", "116hr8352", "116s387", "116s697", "116s1790", "115s842", "116hr1076", "116hr2500", "116hr1893" ], "Federal Employee Paid Leave Act": [ "116s1174", "116s1790", "116hr1534", "116hr2500" ], "Fentanyl Sanctions Act": [ "116s1044", "116s1790", "116hr2226", "116hr2483", "116hr2500", "117hr4981" ], "Otto Warmbier North Korea Nuclear Sanctions Act": [ "115hr3898", "116s1790", "116hr2500", "116hr4084" ], "REPAY Act": [ "113s2812", "114s85", "115hr4372", "115hr6296", "115s1176", "116s1790", "117hr2407", "116hr1033", "116hr2500", "117hr3589", "117s821" ], "Restore Honor to Service Members Act": [ "113hr2839", "114hr3068", "113s1956", "114s1766", "115hr2904", "115s1366", "116s1790", "116s1991", "116hr2500", "116hr3517", "117s2759" ], "Return Expenses Paid and Yielded Act": [ "115hr6296", "116s1790", "116hr1033", "116hr2500" ], "Santa Ynez Band of Chumash Indians Land Affirmation Act": [ "115hr1491", "116s1790", "116hr317", "116hr2500" ], "Stop Financing of al-Shabaab Act": [ "116s1790", "116hr2500" ] } }
/bills/titles?bills=['117hr21', '116hr2500'] Sample Response: (This Endpoint was already implemented. I am going to check with you again if this schema is correct)
{ "117hr21": { "titles": { "FedRAMP Authorization Act": [ "115hr6550", "117hr21", "116hr3941", "116hr6395" ], "To enhance the innovation, security, and availability of cloud computing products and services used in the Federal Government by establishing the Federal Risk and Authorization Management Program within the General Services Administration and by establishing a risk management, authorization, and continuous monitoring process to enable the Federal Government to leverage cloud computing products and services using a risk-based approach consistent with the Federal Information Security Modernization Act of 2014 and cloud-based operations, and for other purposes.": [ "117hr21" ], "Federal Risk and Authorization Management Program Authorization Act of 2021": [ "117hr21" ] }, "titlesNoYear": { "FedRAMP Authorization Act": [ "115hr6550", "117hr21", "116hr3941", "116hr6395" ], "To enhance the innovation, security, and availability of cloud computing products and services used in the Federal Government by establishing the Federal Risk and Authorization Management Program within the General Services Administration and by establishing a risk management, authorization, and continuous monitoring process to enable the Federal Government to leverage cloud computing products and services using a risk-based approach consistent with the Federal Information Security Modernization Act and cloud-based operations, and for other purposes.": [ "117hr21" ], "Federal Risk and Authorization Management Program Authorization Act": [ "117hr21", "116hr3941", "116hr6395" ] } }, "116hr2500": { "titles": { "National Defense Authorization Act for Fiscal Year 2020": [ "116hr7678", "116s1215", "116s1790", "116hr2500", "116hr7112", "116hr7126", "117s2880" ], "To authorize appropriations for fiscal year 2020 for military activities of the Department of Defense, for military construction, and for defense activities of the Department of Energy, to prescribe military personnel strengths for such fiscal year, and for other purposes.": [ "116hres758", "116s1790", "116hr2500" ], "To authorize appropriations for fiscal year 2020 for military activities of the Department of Defense and for military construction, to prescribe military personnel strengths for such fiscal year, and for other purposes.": [ "116hres476", "116s1215", "116hr2500" ], "Military Construction Authorization Act for Fiscal Year 2020": [ "116s1215", "116s1790", "116s2731", "116hr2500" ], "National Defense Strategy Implementation Act": [ "116s1790", "116hr2500", "116hr3233" ], "White Sands National Park Establishment Act": [ "116s871", "116s1790", "115s2797", "116hr2500", "116hr1891" ], "Fair Chance Act": [ "114hr3470", "114s2021", "115hr1905", "116hr8352", "116s387", "116s697", "116s1790", "115s842", "116hr1076", "116hr2500", "116hr1893" ], "Fair Chance to Compete for Jobs Act of 2019": [ "116s387", "116s697", "116s1790", "116hr1076", "116hr2500", "116hr1893" ], "Federal Employee Paid Leave Act": [ "116s1174", "116s1790", "116hr1534", "116hr2500" ], "Fentanyl Sanctions Act": [ "116s1044", "116s1790", "116hr2226", "116hr2483", "116hr2500", "117hr4981" ], "Otto Warmbier North Korea Nuclear Sanctions Act of 2019": [ "116s1790", "116hr2500", "116hr4084" ], "REPAY Act": [ "113s2812", "114s85", "115hr4372", "115hr6296", "115s1176", "116s1790", "117hr2407", "116hr1033", "116hr2500", "117hr3589", "117s821" ], "Restore Honor to Service Members Act": [ "113hr2839", "114hr3068", "113s1956", "114s1766", "115hr2904", "115s1366", "116s1790", "116s1991", "116hr2500", "116hr3517", "117s2759" ], "Return Expenses Paid and Yielded Act": [ "115hr6296", "116s1790", "116hr1033", "116hr2500" ], "Santa Ynez Band of Chumash Indians Land Affirmation Act of 2019": [ "116s1790", "116hr317", "116hr2500" ], "Stop Financing of al-Shabaab Act": [ "116s1790", "116hr2500" ] }, "titlesNoYear": { "National Defense Authorization Act for Fiscal Year 2020": [ "116hr7678", "116s1215", "116s1790", "116hr2500", "116hr7112", "116hr7126", "117s2880" ], "To authorize appropriations for fiscal year 2020 for military activities of the Department of Defense, for military construction, and for defense activities of the Department of Energy, to prescribe military personnel strengths for such fiscal year, and for other purposes.": [ "116hres758", "116s1790", "116hr2500" ], "To authorize appropriations for fiscal year 2020 for military activities of the Department of Defense and for military construction, to prescribe military personnel strengths for such fiscal year, and for other purposes.": [ "116hres476", "116s1215", "116hr2500" ], "Military Construction Authorization Act for Fiscal Year 2020": [ "116s1215", "116s1790", "116s2731", "116hr2500" ], "National Defense Strategy Implementation Act": [ "116s1790", "116hr2500", "116hr3233" ], "White Sands National Park Establishment Act": [ "116s871", "116s1790", "115s2797", "116hr2500", "116hr1891" ], "Fair Chance Act": [ "114hr3470", "114s2021", "115hr1905", "116hr8352", "116s387", "116s697", "116s1790", "115s842", "116hr1076", "116hr2500", "116hr1893" ], "Fair Chance to Compete for Jobs Act": [ "114hr3470", "114s2021", "115hr1905", "116hr8352", "116s387", "116s697", "116s1790", "115s842", "116hr1076", "116hr2500", "116hr1893" ], "Federal Employee Paid Leave Act": [ "116s1174", "116s1790", "116hr1534", "116hr2500" ], "Fentanyl Sanctions Act": [ "116s1044", "116s1790", "116hr2226", "116hr2483", "116hr2500", "117hr4981" ], "Otto Warmbier North Korea Nuclear Sanctions Act": [ "115hr3898", "116s1790", "116hr2500", "116hr4084" ], "REPAY Act": [ "113s2812", "114s85", "115hr4372", "115hr6296", "115s1176", "116s1790", "117hr2407", "116hr1033", "116hr2500", "117hr3589", "117s821" ], "Restore Honor to Service Members Act": [ "113hr2839", "114hr3068", "113s1956", "114s1766", "115hr2904", "115s1366", "116s1790", "116s1991", "116hr2500", "116hr3517", "117s2759" ], "Return Expenses Paid and Yielded Act": [ "115hr6296", "116s1790", "116hr1033", "116hr2500" ], "Santa Ynez Band of Chumash Indians Land Affirmation Act": [ "115hr1491", "116s1790", "116hr317", "116hr2500" ], "Stop Financing of al-Shabaab Act": [ "116s1790", "116hr2500" ] } } }
/titles/[title]?fuzzy=True For now, I am not clear for the response schema of this endpoint. Please make sure about the correct response data schema.