We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d1bb05 commit 3d9bcedCopy full SHA for 3d9bced
core/pactbroker/src/main/kotlin/au/com/dius/pact/core/pactbroker/HalClient.kt
@@ -63,6 +63,11 @@ interface IHalClient {
63
*/
64
fun linkUrl(name: String): String?
65
66
+ /**
67
+ * Returns the current HAL document
68
+ */
69
+ fun currentDoc(): JsonValue.Object?
70
+
71
/**
72
* Calls the closure with a Map of attributes for all links associated with the link name
73
* @param linkName Name of the link to loop over
@@ -251,6 +256,8 @@ open class HalClient @JvmOverloads constructor(
251
256
252
257
override fun navigate(link: String) = navigate(mapOf(), link)
253
258
259
+ override fun currentDoc() = pathInfo
260
254
261
override fun fetch(path: String) = fetch(path, true)
255
262
263
override fun fetch(path: String, encodePath: Boolean): Result<JsonValue.Object, Exception> {
0 commit comments