Repository navigation
Document how an API call and a streamed call are processed - #646
Merged
Merged
Conversation
Adds two user documents, in English with their Traditional Chinese translations, that follow one call through what Polhem adds on top of Polhem.JsonRpc: the session key issued at sign-in under RSA and handed to the payload filter through IApiEncryptionKeyProvider and PolhemPayloadPolicy, the object factory, method policy and access filter that run before a business object method, and how the body codec is chosen. The transport, dispatcher and payload envelope are left to Polhem.JsonRpc's request-flow and streaming documents, which both link to. The streamed-call document explains that business objects do not stream (PolhemMethodPolicy, since #644) and what a caller that asks for a stream gets from a Polhem server. Both are listed under Concepts in the docs index.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two user documents with sequence diagrams, each in English (
docs/en/api/) and Traditional Chinese (docs/zh-TW/api/):api-call-flow.md— one call from a connector to the business object and back, limited to what Polhem adds on top of Polhem.JsonRpc:System.Login,IApiEncryptionKeyProvider, and howPolhemPayloadPolicyhands the key to the payload filter throughIPayloadServerPolicyPolhemObjectFactory(API key, authorization),PolhemMethodPolicy,PolhemAccessFilter(ApiAccessControlAttribute),PolhemPayloadFilter, the binder,ApiOutputConverter,PolhemExceptionMapperapi-streamed-calls.md— business objects do not stream (PolhemMethodPolicy, Move to Polhem.JsonRpc 1.4.0 and refuse streaming methods in PolhemMethodPolicy #644); what a caller that asks fortext/event-streamgets from a Polhem server.The transport, the dispatcher, the payload envelope and SSE streaming are not repeated: both documents link to Polhem.JsonRpc's
docs/request-flow.mdanddocs/streaming.md. Defaults, byte layouts and counts are left to the types, READMEs and ADRs they link to. Both documents are listed under Concepts and under "API & frontend" in the docs index.Verified locally:
./check-md-links.sh,./check-docs-i18n.shand./check-public-docs.shpass. Documentation only; no build or test change. No wire change, so nothing follows downstream.