Core: Send Json over API

This commit is contained in:
Omma 2024-08-05 15:59:09 +03:30
parent a8adb825d5
commit 91f6fca9c8
14 changed files with 243 additions and 0 deletions

20
proxy/views.py Normal file
View file

@ -0,0 +1,20 @@
from django.shortcuts import render
from django.http import JsonResponse
import json
import requests
# Create your views here.
def send_wells(request):
print("sending wells")
payload = {'data':[
{
"id": 1,
"licence": "12-d-13",
},
{
"id": 2,
"licence": "16-a-111",
},]
}
return JsonResponse(payload)