Class JsonApiObject
java.lang.Object
com.toedter.spring.hateoas.jsonapi.JsonApiObject
This class represents a JSON:API object compliant to the
see JSON:API 1.1 specification.
-
Constructor Summary
ConstructorDescriptionJsonApiObject
(boolean showVersion) Creates a JSON:API object compliant to the see JSON:API 1.1 spec.Creates a JSON:API object compliant to the see JSON:API 1.1 spec. -
Method Summary
-
Constructor Details
-
JsonApiObject
public JsonApiObject(boolean showVersion, @Nullable List<URI> ext, @Nullable List<URI> profile, @Nullable Map<String, Object> meta) Creates a JSON:API object compliant to the see JSON:API 1.1 spec.- Parameters:
showVersion
- true, if JSON:API version should be renderedext
- list of JSON:API extensionsprofile
- list of JSON:API profilesmeta
- the JSON:API object meta
-
JsonApiObject
public JsonApiObject(boolean showVersion) Creates a JSON:API object compliant to the see JSON:API 1.1 spec.- Parameters:
showVersion
- true, if JSON:API version should be rendered
-
-
Method Details
-
getVersion
- Returns:
- the supported JSON:API version ("1.1") or null
-
getExt
- Returns:
- list of JSON:API extensions or null
-
getProfile
- Returns:
- list of JSON:API profiles or null
-
getMeta
- Returns:
- the JSON:API object meta or null
-