PHP Classes

File: tests/tests_phpstorm/comments.http

Recommend this page to a friend!
  Classes of Insolita   Yii2 Fractal   tests/tests_phpstorm/comments.http   Download  
File: tests/tests_phpstorm/comments.http
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Yii2 Fractal
Components to implement API based on JSON:API
Author: By
Last change:
Date: 13 days ago
Size: 844 bytes
 

Contents

Class file image Download
### Index GET http://127.0.0.1:8400/comments?page[size]=5 Accept: application/vnd.api+json ### Index with include GET http://127.0.0.1:8400/comments?page[size]=2&include=post Accept: application/vnd.api+json ### Index with bad include GET http://127.0.0.1:8400/comments?page[size]=2&include=tags Accept: application/vnd.api+json ### Index with include nested GET http://127.0.0.1:8400/comments?page[size]=2&include=post,post.author Accept: application/vnd.api+json ### Index with bad nested include GET http://127.0.0.1:8400/comments?page[size]=2&include=post,post.tags Accept: application/vnd.api+json ### View with include GET http://127.0.0.1:8400/comment/2?include=post Accept: application/vnd.api+json ### View with include nested GET http://127.0.0.1:8400/comment/2?include=post.author,post.category Accept: application/vnd.api+json