Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```json
- // Before
- {
- "status": true,
- "length": 1,
- "data": {
- "id": "16",
- "type": "Moodle::Competency",
- "attributes": {
- "shortname": "Comp 3",
- "description": "",
- "idnumber": "C03",
- "timecreated": 1551171957,
- "timemodified": 1551171957,
- "framework_id": 7
- },
- "relationships": {
- "courses": {
- "data": [
- {
- "id": "12",
- "type": "course"
- },
- {
- "id": "14",
- "type": "course"
- }
- ]
- }
- }
- }
- }
- // After
- {
- "status": true,
- "length": 1,
- "data": {
- "id": "16",
- "type": "Moodle::Competency",
- "attributes": {
- "shortname": "Comp 3",
- "description": "",
- "idnumber": "C03",
- "timecreated": 1551171957,
- "timemodified": 1551171957,
- "framework_id": 7,
- "course_count": 2
- },
- "relationships": {
- "courses": {
- "data": [
- {
- "id": "12",
- "type": "course"
- },
- {
- "id": "14",
- "type": "course"
- }
- ]
- }
- }
- }
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement