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.ContextandRequestOptions.So api/now/{version}/table
Becomes
NowRequestBuilder- since there are multiple diverging pathstable- has methods associatedGet- one of the supported methods, accepts context andRequestOptionsPost- another method, accepts context, body, andRequestOptionsThis facade wraps around the core logic for:
Because of the batch API support, all
RequestBuildersshould have aToXXXRequestInformationmethod.There are two modes of interaction, doing so directly via the
RequestBuilderand via the fluent API provided by the client.All reactions