Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ViewportSeen as
jsonJSON (Default)
prettyJSON (Encoded with JSON_PRETTY_PRINT)
xmlXML
If driver is available, this viewport will be based on XML_Serializer. If our XML_Serializer fails, we will fall back to the SimpleXMLElement class.
yamlYAML
phpserializeA php serialized string
printA string based on print_r()

Example: https://api-dev.tornevall.net/2.0/dnsbl/getEntriesCount/type/fraudbl?viewport=pretty&viewmode=tinyComing soon: Better explaining of ViewPorts.

Compression and encoding

There are undocumented and untested support for compression, that can be called by using encode=<encodeType>. The output format will be a double encoded result string that looks like this, and are named as their methods:

Image Added

The response itself is the real rendered response. The supported encoding are listed below.

Compression typeMethodLevelResponse keyOther info
gzipgzEncode (PHP)9gzEncodeEncodedResponse 
gzipgzCompress (PHP)9gzCompressEncodedResponse 
md5md5-md5EncodedResponseThis is actually only a testing function and won't compress anything

 

Tracker

Jira
serverTornevall Networks Project Suite
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
maximumIssues20
jqlQueryProject = API
serverIdef1f2374-e58a-319f-9d38-10348dbac859

...