PHP Classes

File: tests/functional/001_records/079_read_post_with_categories.log

Recommend this page to a friend!
  Classes of Punto Waskito   PHP CRUD API   tests/functional/001_records/079_read_post_with_categories.log   Download  
File: tests/functional/001_records/079_read_post_with_categories.log
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP CRUD API
Provide API to manipulate database table records
Author: By
Last change:
Date: 3 years ago
Size: 1,061 bytes
 

Contents

Class file image Download
=== GET /records/posts/1?join=tags&include=tags.name === 200 Content-Type: application/json; charset=utf-8 Content-Length: 69 {"id":1,"tags":[{"id":1,"name":"funny"},{"id":2,"name":"important"}]} === GET /records/posts/1?join=categories&include=category_id,categories.name === 200 Content-Type: application/json; charset=utf-8 Content-Length: 53 {"id":1,"category_id":{"id":1,"name":"announcement"}} === GET /records/posts/1?join=comments,categories&include=category_id,categories.name === 200 Content-Type: application/json; charset=utf-8 Content-Length: 145 {"id":1,"category_id":1,"comments":[{"post_id":1,"category_id":{"id":3,"name":"comment"}},{"post_id":1,"category_id":{"id":3,"name":"comment"}}]} === GET /records/posts/1?join=categories&join=comments,categories&include=category_id,categories.name === 200 Content-Type: application/json; charset=utf-8 Content-Length: 174 {"id":1,"category_id":{"id":1,"name":"announcement"},"comments":[{"post_id":1,"category_id":{"id":3,"name":"comment"}},{"post_id":1,"category_id":{"id":3,"name":"comment"}}]}