Files and Libraries

championships.xsd

Created April 29, 2024

Files
name size description
championships.xsd 109.21K  

core.xsd

Created April 29, 2024

Files
name size description
core.xsd 89.99K  

GWT JSON Overlay

Created April 29, 2024

The Google Web Toolkit JSON Overlay library provides the JSON Overlays that can be used to access the Web service API for this application.

JSON Overlay Example
String url = ...;
RequestBuilder request = new RequestBuilder(RequestBuilder.GET, url);
request.sendRequest(null, new RequestCallback() {
  public void onResponseReceived(Request request, Response response) {
    if (200 == response.getStatusCode()) {
      //handle the successful data...
      TournamentRegistrationResultDTO data = TournamentRegistrationResultDTO.fromJson(response.getText());
      //handle the TournamentRegistrationResultDTO...
    }
    else {
      //handle the error...
    }
  }

  public void onError(Request request, Throwable throwable) {
    //handle the error...
  }
});
    

Files
name size description
nu.liga.portal.rs-gwt-json-overlay.jar 398.81K The sources for the GWT JSON overlay.

Java JSON Client Library

Created April 29, 2024

The Java client-side library is used to provide the set of Java objects that can be serialized to/from JSON using Jackson. This is useful for accessing the JSON REST endpoints that are published by this application.

Resources Example (Raw JAXB)
java.net.URL url = new java.net.URL(baseURL + "/2020/mybigpoint/tournaments/registrations/{externalId}");
ObjectMapper mapper = new ObjectMapper();
java.net.URLConnection connection = url.openConnection();
connection.setDoOutput(true);
connection.connect();

mapper.writeValue(connection.getOutputStream(), tournamentRegistrationDataDTO);
TournamentRegistrationResultDTO result = (TournamentRegistrationResultDTO) mapper.readValue( connection.getInputStream(), TournamentRegistrationResultDTO.class );
//handle the result as needed...
    
Resources Example (Jersey client)
javax.ws.rs.client.Client client = javax.ws.rs.client.ClientBuilder.newClient();

TournamentRegistrationResultDTO result = client.target(baseUrl + "/2020/mybigpoint/tournaments/registrations/{externalId}")
  .put(javax.ws.rs.client.Entity.entity(tournamentRegistrationDataDTO, "application/json"), TournamentRegistrationResultDTO.class);

//handle the result as needed...
    

Files
name size description
nu.liga.portal.rs-json-client.jar 559.41K The binaries for the Java JSON client library.
nu.liga.portal.rs-json-client-json-sources.jar 399.55K The sources for the Java JSON client library.

Java XML Client Library

Created April 29, 2024

The Java client-side library is used to access the Web service API for this application using Java.

The Java client-side library is used to provide the set of Java objects that can be serialized to/from XML using JAXB. This is useful for accessing the resources that are published by this application.

Resources Example (Raw JAXB)
java.net.URL url = new java.net.URL(baseURL + "/2014/federations/{fedNickname}/awardTypes");
JAXBContext context = JAXBContext.newInstance( byte[].class );
java.net.URLConnection connection = url.openConnection();
connection.connect();

Unmarshaller unmarshaller = context.createUnmarshaller();
AwardTypesDTO result = (AwardTypesDTO) unmarshaller.unmarshal( connection.getInputStream() );
//handle the result as needed...
    
Resources Example (Jersey client)
javax.ws.rs.client.Client client = javax.ws.rs.client.ClientBuilder.newClient();

AwardTypesDTO result = client.target(baseUrl + "/2014/federations/{fedNickname}/awardTypes")
  .get(AwardTypesDTO.class);

//handle the result as needed...
    

Files
name size description
nu.liga.portal.rs-xml-client.jar 492.71K The binaries for the Java XML client library.
nu.liga.portal.rs-xml-client-xml-sources.jar 375.66K The sources for the Java XML client library.

JavaScript Client Library

Created April 29, 2024

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

The library uses ES6 class syntax which has limited support. See MDN and the ES6 Compatibility Table for more details.

The library contains a UMD loader which supports AMD, CommonJS and browser globals. The browser global variable name for this library is "javascriptClient".

JavaScript Example
//read the resource in JSON:
var json = JSON.parse(jsonString);

//create an object
var object = new Object(json);

//retreive the json again
var newJson = object.toJSON();

//serialize the json
var newJsonString = JSON.stringify(newJson);
    

Files
name size description
nu.liga.portal.rs-javascript-client-js.zip 184.23K

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

The library uses ES6 class syntax which has limited support. See MDN and the ES6 Compatibility Table for more details.

The library contains a UMD loader which supports AMD, CommonJS and browser globals. The browser global variable name for this library is "javascriptClient".

JavaScript Example
//read the resource in JSON:
var json = JSON.parse(jsonString);

//create an object
var object = new Object(json);

//retreive the json again
var newJson = object.toJSON();

//serialize the json
var newJsonString = JSON.stringify(newJson);
    

lkreports.xsd

Created April 29, 2024

Files
name size description
lkreports.xsd 4.99K  

matches.xsd

Created April 29, 2024

Files
name size description
matches.xsd 974.00bytes  

ns0.xsd

Created April 29, 2024

Files
name size description
ns0.xsd 53.61K  

ns1.xsd

Created April 29, 2024

Files
name size description
ns1.xsd 1.28K  

PHP JSON Client Library

Created April 29, 2024

The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON. This is useful for accessing the resources 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+.

PHP JSON Example
//read the resource in JSON:
$json = ...;

//read the json as an array.
$parsed = json_decode($json, true);

//read the json array as the object
$result = new Object($parsed);

//open a writer for the json
$json = $result->toJson();
    

Files
name size description
nu.liga.portal.rs-php-json-client-php.zip 220.26K

The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON. This is useful for accessing the resources 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+.

PHP JSON Example
//read the resource in JSON:
$json = ...;

//read the json as an array.
$parsed = json_decode($json, true);

//read the json array as the object
$result = new Object($parsed);

//open a writer for the json
$json = $result->toJson();
    

players.xsd

Created April 29, 2024

Files
name size description
players.xsd 7.49K  

Ruby JSON Client Library

Created April 29, 2024

The Ruby JSON 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.

Ruby JSON Example
require 'net/https'
require 'uri'
//...

//read a resource from a REST url
url = URI.parse("...")
request = Net::HTTP::Put.new(url.request_uri)
input = Object.new
//set up the Object...
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 = Object.from_json(JSON.parse(res.body))

//handle the result as needed...
    

Files
name size description
nu.liga.portal.rs.rb 3.21M

The Ruby JSON 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.

Ruby JSON Example
require 'net/https'
require 'uri'
//...

//read a resource from a REST url
url = URI.parse("...")
request = Net::HTTP::Put.new(url.request_uri)
input = Object.new
//set up the Object...
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 = Object.from_json(JSON.parse(res.body))

//handle the result as needed...
    

tournaments.xsd

Created April 29, 2024

Files
name size description
tournaments.xsd 36.33K  

verband.xsd

Created April 29, 2024

Files
name size description
verband.xsd 19.44K