PHP Classes

File: tests/_data/scenarios/api/Create_And_Find_Article.txt

Recommend this page to a friend!
  Classes of Gjero Krsteski   PHP Nuclear Reactor   tests/_data/scenarios/api/Create_And_Find_Article.txt   Download  
File: tests/_data/scenarios/api/Create_And_Find_Article.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP Nuclear Reactor
Asynchronous RESTful API using ReactPHP and PIMF
Author: By
Last change: Update of tests/_data/scenarios/api/Create_And_Find_Article.txt
Date: 5 years ago
Size: 477 bytes
 

Contents

Class file image Download
I WANT TO CREATE A ARTICLE VIA API AND FIND A ARTICLE VIA API I have http header 'Content-Type'," 'application/x-www-form-urlencoded' I send post '/articles'," ['title' => 'test title'," 'content' => 'test content']" I see response code is "201" I see response is json "" I see response contains 'newId' I see response matches json type "['newId' => 'integer']" I grab response ")" I send get '/articles/'.$body->newId" I see response code is "200" I see response is json ""