Files and Libraries

The following files and libraries are available:

PHP Client Library

Created Oct 14, 2015 10:12:34 AM

Introduction

The PHP client-side library defines the PHP classes that can be (de)serialized to/from JSON. This is useful for accessing the REST endpoints that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").

This library requires the json_encode function which was included in PHP versions 5.2.0+.

Files

name size
gentics.contentnode-php.zip 86.26K

Ruby Client Library

Created Oct 14, 2015 10:12:25 AM

Introduction

The Ruby client-side library defines the Ruby classes that can be (de)serialized to/from JSON. This is useful for accessing the REST endpoints that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").

This library leverages the Ruby JSON Implementation, which is required in order to use this library.

JSON REST Example

require 'net/https' require 'uri' //... //read a resource from a REST url url = URI.parse("...") request = Net::HTTP::Post.new(url.request_uri) input = SetPermsRequest.new //set up the SetPermsRequest... request.body = input.to_json request['Content-Type'] = "application/json" http = Net::HTTP.new(url.host, url.port) //set up additional http stuff... res = http.start do |ht| ht.request(request) end result = GenericResponse.from_json(JSON.parse(res.body)) //handle the result as needed...

Files

name size
gentics.contentnode.rb 276.50K