Package io.skipcheck.tm1.client.service
@NullMarked
package io.skipcheck.tm1.client.service
The services: one per REST resource family, in a subpackage per area.
Every service follows the same conventions, which ArchitectureTest checks:
- it's a final class with one constructor, taking the
Tm1Sessionit sends requests through, and holds no other state, so creating one is free; - each public method is one REST call, returning a
Mono, or aFluxfor a collection, which streams; nothing blocks; - each public method declares the endpoints it implements with
Tm1Endpoint, which the coverage gate counts; - reads take an
ODataQuery, so the caller chooses what's selected and expanded; writes take the generated patches; an update can send an ETag (If-Match); - operations come from the generated
Tm1Operations, so a server that lacks one fails before anything is sent. - where TM1 behaves differently from
$metadata, or from what a reader would expect (a property a PATCH ignores, an append where a replace is natural, an operation it refuses), the method's Javadoc says so, as "TM1 (11.8) …", and a test pins it.
-
Annotation InterfacesClassDescriptionAn endpoint of the TM1 REST API that a service method implements, named as the coverage gate names it:
EntitySet Dimensions,Navigation Dimension/Hierarchies,Action Dimension/SaveAs,ActionImport ExecuteMDX.The container for a method implementing more than one endpoint.