From cc7f7b1ecf70a7f363ac1d7f875c49d1b4ccb733 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Wed, 29 May 2019 15:01:09 +0100 Subject: [PATCH] Issue #3051908 by Roensby, gabesullice: Documentation in json.api.php describes wrong query parameter --- core/modules/jsonapi/jsonapi.api.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/jsonapi/jsonapi.api.php b/core/modules/jsonapi/jsonapi.api.php index 721f97a43142..c011e77f7975 100644 --- a/core/modules/jsonapi/jsonapi.api.php +++ b/core/modules/jsonapi/jsonapi.api.php @@ -84,7 +84,7 @@ * version-identifier * __|__ * / \ - * ?resource_version=foo:bar + * ?resourceVersion=foo:bar * \_/ \_/ * | | * version-negotiator | @@ -105,14 +105,14 @@ * that has a "Published" revision and a subsequent "Draft" revision. * * Using JSON:API, one could request the "Published" node by requesting - * `/jsonapi/node/page/{{uuid}}?resource_version=rel:latest-version`. + * `/jsonapi/node/page/{{uuid}}?resourceVersion=rel:latest-version`. * * To preview an entity that is still a work-in-progress (i.e. the "Draft" * revision) one could request - * `/jsonapi/node/page/{{uuid}}?resource_version=rel:working-copy`. + * `/jsonapi/node/page/{{uuid}}?resourceVersion=rel:working-copy`. * * To request a specific revision ID, one can request - * `/jsonapi/node/page/{{uuid}}?resource_version=id:{{revision_id}}`. + * `/jsonapi/node/page/{{uuid}}?resourceVersion=id:{{revision_id}}`. * * It is not yet possible to request a collection of revisions. This is still * under development in issue [#3009588]. -- GitLab