Core: Send Json over API
This commit is contained in:
parent
a8adb825d5
commit
91f6fca9c8
14 changed files with 243 additions and 0 deletions
20
proxy/views.py
Normal file
20
proxy/views.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue