Skip to content

Commit

Permalink
Merge pull request #1232 from givtnl/remove-unused-api-endpoint
Browse files Browse the repository at this point in the history
Remove unused endpoint (not existing anymore in backend)
  • Loading branch information
TammiLion authored Nov 4, 2024
2 parents 571c5c5 + 7080ffa commit 2437967
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions lib/core/network/api_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -451,27 +451,6 @@ class APIService {
return response.statusCode == 200;
}

Future<bool> createChild(Map<String, dynamic> body) async {
final url =
Uri.https(_apiURL, 'givtservice/v1/childprofile/setup-child-profile');

final response = await client.post(
url,
body: jsonEncode(body),
headers: {
'Content-Type': 'application/json',
},
);

if (response.statusCode >= 300) {
throw GivtServerFailure(
statusCode: response.statusCode,
body: jsonDecode(response.body) as Map<String, dynamic>,
);
}
return response.statusCode == 200;
}

Future<bool> editChild(String childGUID, Map<String, dynamic> body) async {
final url = Uri.https(_apiURL, '/givtservice/v1/ChildProfile/$childGUID');

Expand Down

0 comments on commit 2437967

Please sign in to comment.