gentics / gentics/mesh

Add segmentField auto-fill for webroot create request

Open
#808 0 comments 0 reactions 0 assignees View on GitHub
quick win
Dominant language
Java
Stars
593
Forks
123
Avg merge
2d 18h
Merged PRs (30d)
4

Description

```
@Test
public void testCreateNodeViaPath() {
NodeCreateRequest nodeCreateRequest = new NodeCreateRequest();
nodeCreateRequest.setLanguage("en");
nodeCreateRequest.setSchemaName("content");
nodeCreateRequest.getFields().put("teaser", FieldUtil.createStringField("some teaser"));
//nodeCreateRequest.getFields().put("slug", FieldUtil.createStringField("new-page.html"));
nodeCreateRequest.getFields().put("content", FieldUtil.createStringField("Blessed mealtime again!"));

NodeResponse response = call(() -> client().webrootCreate(PROJECT_NAME, "/new-page.html", nodeCreateRequest));
assertEquals("0.1", response.getVersion());
}
```

* Add test which tests node creation with missing segmentField field
* Add documentation on webroot update / create handling
* Implement segmentField usage for node create requests via webroot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.