EducatedCamels / Sprint_1

Group project
0 stars 2 forks source link

Create json for 'training program' table #58

Open mrozenbaum opened 7 years ago

mrozenbaum commented 7 years ago

Task

Creating json for training program table

Context

There is no data in the training program table. The company wants to actually expose some real content. This will accomplish that.

The process

Add json data to trainingProgram.json inside of the fixtures folder

Make sure you specify the title of the model you want to add to in the json. Here is an example “model”: “API.trainingProgram”,

Ten different instances of the training program data are required.

Once json is complete type:

python manage.py loaddata trainingProgram.json

Once you've loaded data check to see if it is in the API

Outcome/expected behavior:

Should expose newly loaded data in the API interface. There should be at least 10 different training program instances in the trainingProgram table.