Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

How to send JSON format data in postman to django models that have a foreign key to another model

step 1: get all the articles with postman
step 2: copy one of the id's of the articles
step 3: paste that id to articleId like shown below, if id is 2 then you should right like this

{
    "userId":"153344",
    "location":"Ethiopia",
    "eventType":"1",
    "articleId":"2",
    "communityId":"1234567",
    "source":"1",
    "timestamp":"123456"
    
}
 
PREVIOUS NEXT
Tagged: #How #send #JSON #format #data #postman #django #models #foreign #key #model
ADD COMMENT
Topic
Name
5+9 =