import requests

queryStringParams = {
    "$top": "50",
    "$skip":"200",
    "$filter":"ProductID eq 2205"
}
headers =  {
    "Content-Type":"application/json"
}
url = "https://xtremeodatarestapi.azurewebsites.net/odata/OrderLines" 

# Make the GET request
response = requests.get(url, params=queryStringParams, headers=headers)

# Make the GET request
json_data =response.json()
data = json_data["value"]

# Create DataFrame from JSON data
df = spark.read.json(spark.sparkContext.parallelize([data]))
    
# Show DataFrame
df.show(100)