Advertisement
dewthossapol

get data version

Aug 13th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.97 KB | None | 0 0
  1. // api get content
  2. // url /api/control_versions/data_control_version/content/?blah=blah
  3.  
  4. // request param : (content_type, content_id) หรือ (data_version_id)
  5.  
  6. // response case no course, no data version
  7. {
  8.     "schema_version_id": 1,
  9.     "data_version_id": null,
  10.     "version_number": null,
  11.     "is_published": False,
  12.     "last_published": null,
  13.     "raw_data": {},
  14.     "content_type": null,
  15.     "content_id": null
  16. }
  17.  
  18. // response case course, data version
  19. {
  20.     "schema_version_id": 1,
  21.     "data_version_id": 1,
  22.     "version_number": 0.1,
  23.     "is_published": False,
  24.     "last_published": null,
  25.     "raw_data": {"blah": "blah"},
  26.     "content_type": "course",
  27.     "content_id": 33
  28. }
  29.  
  30. // response case no course, data version
  31. {
  32.     "schema_version_id": 1,
  33.     "data_version_id": 1,
  34.     "version_number": 0.1,
  35.     "is_published": False,
  36.     "last_published": null,
  37.     "raw_data": {"blah": "blah"},
  38.     "content_type": "course",
  39.     "content_id": null
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement