Skip to content

Commit 11aad71

Browse files
committed
Update GetVersion method to return status response instead of string
1 parent 3b4f984 commit 11aad71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/iop/cls/IOP/Service/Remote/Rest

src/iop/cls/IOP/Service/Remote/Rest/v1.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ]
2323
</Routes>
2424
}
2525

26-
ClassMethod GetVersion() As %String
26+
ClassMethod GetVersion() As %Status
2727
{
28-
Return {"version": "1.0.0", "description": "Interoperability Embedded Python Service API"}.%ToJSON()
28+
Return ..%WriteResponse({"version": "1.0.0", "description": "Interoperability Embedded Python Service API"}.%ToJSON())
2929
}
3030

3131
/// Validate that a namespace exists. Throws on failure.

0 commit comments

Comments
 (0)