public class PathsObjectBuilder extends Object
Holds the relative paths to the individual endpoints and their operations. The path is appended to the
URL from the ServerObject
in order to construct the full URL. The Paths MAY be empty, due to
ACL constraints.
Constructor and Description |
---|
PathsObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
PathsObject |
build() |
static PathsObjectBuilder |
pathsObject()
Creates a builder for a
PathsObject |
PathsObjectBuilder |
withPathItemObjects(Map<String,PathItemObject> pathItemObjects) |
public PathsObjectBuilder withPathItemObjects(Map<String,PathItemObject> pathItemObjects)
pathItemObjects
- A relative path to an individual endpoint. The field name MUST begin with a slash.
The path is appended (no relative URL resolution) to the expanded
URL from the ServerObject
's url
field in order to construct the
full URL. Path templating is allowed. When matching URLs, concrete (non-templated)
paths would be matched before their templated counterparts. Templated paths with the
same hierarchy but different templated names MUST NOT exist as they are identical.
In case of ambiguous matching, it's up to the tooling to decide which one to use.public PathsObject build()
public static PathsObjectBuilder pathsObject()
PathsObject
Copyright © 2017–2021. All rights reserved.