PHP Classes

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

Recommend this page to a friend!
  Classes of Gjero Krsteski  >  PHP Nuclear Reactor  >  tests/_data/scenarios/api/Create_Article.txt  >  Download  
File: tests/_data/scenarios/api/Create_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_Article.txt
Date: 2 years ago
Size: 337 bytes
 

Contents

Class file image Download
I WANT TO CREATE 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']"

For more information send a message to info at phpclasses dot org.