Example of API

JSON Documentation


Method: greeting

http://json.smappi.org/adw0rd/example/greeting?name=<string>

Example of greeting

greeting("adw0rd")
  // => "Hello, adw0rd!"

Live Example

Request:
http://json.smappi.org/adw0rd/example/greeting?name=example
Response:
"Hello, example!"

Method: calculator

http://json.smappi.org/adw0rd/example/calculator?digits=<resttype>

Example of calculator

calculator(42, 42, 42)
  // => 126

Live Example

Request:
http://json.smappi.org/adw0rd/example/calculator?digits=[1, 2, 3]
Response:
6

XML Documentation


Method: greeting

http://xml.smappi.org/adw0rd/example/greeting?name=<string>

Example of greeting

greeting("adw0rd")
  // => "Hello, adw0rd!"

Live Example

Request:
http://xml.smappi.org/adw0rd/example/greeting?name=example
Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>Hello, example!</root>

Method: calculator

http://xml.smappi.org/adw0rd/example/calculator?digits=<resttype>

Example of calculator

calculator(42, 42, 42)
  // => 126

Live Example

Request:
http://xml.smappi.org/adw0rd/example/calculator?digits=[1, 2, 3]
Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>6</root>

SOAP Documentation (coming soon)

WSDL-Scheme here...

Method: greeting

http://soap.smappi.org/adw0rd/example/greeting?name=<string>

Example of greeting

greeting("adw0rd")
  // => "Hello, adw0rd!"

Live Example

Request:
http://soap.smappi.org/adw0rd/example/greeting?name=example
Response:
{"error":{"code":"1501","message":"Format \"soap\" is not supported!"}}

Method: calculator

http://soap.smappi.org/adw0rd/example/calculator?digits=<resttype>

Example of calculator

calculator(42, 42, 42)
  // => 126

Live Example

Request:
http://soap.smappi.org/adw0rd/example/calculator?digits=[1, 2, 3]
Response:
{"error":{"code":"1501","message":"Format \"soap\" is not supported!"}}
[A]
author

Versions

  • master