Add description to POST request (paths/…/post/description)
that states that user in example payload sees only the first
data node child of the resource to be created and that
this is in accordance with RFC 8040 which allows us to
create only one resource in POST request.
JIRA: NETCONF-1137
Change-Id: I8549cf860deb5e069a017c9e7247c0bce311e588
Signed-off-by: lubos-cicut <lubos.cicut@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
private static final List<String> MIME_TYPES = List.of(MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON);
private static final String OBJECT = "object";
private static final String TYPE_KEY = "type";
+ private static final String POST_DESCRIPTION = """
+ \n
+ Note:
+ In example payload, you can see only the first data node child of the resource to be created, following the
+ guidelines of RFC 8040, which allows us to create only one resource in POST request.
+ """;
private OperationBuilder() {
// Hidden on purpose
.parameters(parameters)
.requestBody(requestBody)
.responses(responses)
- .description(description)
+ .description(description + POST_DESCRIPTION)
.summary(summary)
.build();
}