PHP Classes

File: tests/functional/001_records/077_list_posts_with_page_limits.log

Recommend this page to a friend!
  Classes of Punto Waskito   PHP CRUD API   tests/functional/001_records/077_list_posts_with_page_limits.log   Download  
File: tests/functional/001_records/077_list_posts_with_page_limits.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,924 bytes
 

Contents

Class file image Download
=== GET /records/posts?size=10 === 200 Content-Type: application/json; charset=utf-8 Content-Length: 690 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"?? Grüßgott, ?i???, dobrż de?, hyvää päivää, ?????????, ???? ???, góšan dag, ????????????"},{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"},{"id":7,"user_id":1,"category_id":1,"content":"#3"},{"id":8,"user_id":1,"category_id":1,"content":"#4"},{"id":9,"user_id":1,"category_id":1,"content":"#5"},{"id":10,"user_id":1,"category_id":1,"content":"#6"},{"id":11,"user_id":1,"category_id":1,"content":"#7"},{"id":12,"user_id":1,"category_id":1,"content":"#8"}]} === GET /records/posts === 200 Content-Type: application/json; charset=utf-8 Content-Length: 690 {"records":[{"id":1,"user_id":1,"category_id":1,"content":"blog started"},{"id":2,"user_id":1,"category_id":2,"content":"?? Grüßgott, ?i???, dobrż de?, hyvää päivää, ?????????, ???? ???, góšan dag, ????????????"},{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"},{"id":7,"user_id":1,"category_id":1,"content":"#3"},{"id":8,"user_id":1,"category_id":1,"content":"#4"},{"id":9,"user_id":1,"category_id":1,"content":"#5"},{"id":10,"user_id":1,"category_id":1,"content":"#6"},{"id":11,"user_id":1,"category_id":1,"content":"#7"},{"id":12,"user_id":1,"category_id":1,"content":"#8"}]} === GET /records/posts?page=5,1 === 200 Content-Type: application/json; charset=utf-8 Content-Length: 78 {"records":[{"id":7,"user_id":1,"category_id":1,"content":"#3"}],"results":12} === GET /records/posts?page=6,1 === 403 Content-Type: application/json; charset=utf-8 Content-Length: 46 {"code":1019,"message":"Pagination forbidden"}