Skip to content

Commit eae62dc

Browse files
Mohamed AliMohamed-RPF
authored andcommitted
Update api to accept district_name and district_nces_id in school creation and update requests and include both in school JSON responses.
1 parent f4fe9a9 commit eae62dc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

app/controllers/api/schools_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ def school_params
5454
:name,
5555
:website,
5656
:reference,
57+
:district_name,
58+
:district_nces_id,
5759
:address_line_1,
5860
:address_line_2,
5961
:municipality,

app/views/api/schools/_school.json.jbuilder

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ json.call(
66
:name,
77
:website,
88
:reference,
9+
:district_name,
10+
:district_nces_id,
911
:address_line_1,
1012
:address_line_2,
1113
:municipality,

0 commit comments

Comments
 (0)