Commit c2a33ec2 authored by Tarsvini's avatar Tarsvini


parent 5fe168a8
Pipeline #14313633 passed with stages
in 4 minutes and 17 seconds
No preview for this file type
......@@ -48,6 +48,7 @@ class CSUIhelper:
response = requests.get(API_MAHASISWA_LIST_URL,params={"access_token": self.access_token, "client_id": self.client_id})
mahasiswa_list = response.json()["results"]
return mahasiswa_list
......@@ -35,7 +35,7 @@ def add_friend(request):
npm = request.POST['npm']
friend = Friend(friend_name=name, npm=npm)
return HttpResponse(json.dumps(friend.as_dict()))
return JsonResponse(friend.as_dict())
def delete_friend(request, friend_id):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment