SDK Architecture #252
michaeldcanady
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Basically, the RequestBuilder is a facade of the supported methods for that particular path. All methods get
context.Context
andRequestOptions
.So api/now/{version}/table
Becomes
NowRequestBuilder
- since there are multiple diverging pathstable
- has methods associatedGet
- one of the supported methods, accepts context andRequestOptions
Post
- another method, accepts context, body, andRequestOptions
This facade wraps around the core logic for:
Because of the batch API support, all
RequestBuilders
should have aToXXXRequestInformation
method.There are two modes of interaction, doing so directly via the
RequestBuilder
and via the fluent API provided by the client.Beta Was this translation helpful? Give feedback.
All reactions