Bruno collection¶
One player's turn, as raw calls. On a REST-based installation play
01-rest-round/; on an EDC-based installation play 02-connector-round/ and
03-remote-edc/ — there the peer /api is closed and every call runs over your
connector.
Before you start¶
- Install Bruno and open this folder as a collection.
- Select the environment of your installation and fill it from your plate:
- 2a) REST-based round:
01-handout-stack—base_urlisYour seat+/api/v2/company, pluscompany_code,company_name,company_token. -
2b) EDC-based round:
03-edc— the table:Environment name plate name seat_urlYour seatcompany_codethe code next to the company name company_namethe company name company_tokenCompany tokenmgmt_urlYour connectormgmt_api_keyManagement keyprovider_dspYour DSPprovider_didYour DIDAsk the moderator for your plate. use: https://game-backend.tg.semix-int4.kubernetes.htw-dresden.de/h/
EDC play — one player, step by step¶
Every own call has the same five-step preamble, here called prep:
01(the catalog),02(negotiate; its@id→negotiation_id),03(poll toFINALIZED;contractAgreementId→contract_id),04(transfer;@id→transfer_id),05(poll the EDR;endpoint→edr_endpoint,authorization→edr_auth).
01 needs provider_asset_id (the catalog entry's @id) and offer_id (that
entry's hasPolicy[0].@id). provider_dsp/provider_did stay your own pair for
every own call.
Note: 05 may answer 404 a few times while the transfer starts, and
edr_endpoint must carry your own seat name for an own call.
- Open your inbox: prep with
provider_asset_id=<seat>-inbox-asset, then06_read_own_inbox. Copy theidof thecurrententry intomessage_id. 07_read_own_message. Copy the item'snotification.trace_tokenintotrace_tokenand itscomponent_codeintocomponent_code.- Investigate: prep with
provider_asset_id=<seat>-investigate-asset, then08_investigate_over_edr. - Case A — the answer says
not_our_faultornot_our_product: copy thenotificationvalues intonext_trace_token,next_component_code,next_component_name,next_failure_text,next_recall_url,next_recall_dsp,next_recall_did,next_recall_asset, and itsreject_*trio intoown_reject_dsp,own_reject_did,own_reject_asset. Then forward, in03-remote-edc/: setpeer_dsp=next_recall_dsp,peer_did=next_recall_did,peer_asset=next_recall_asset, run01–05, then06_post_recall. The item is in the next company's inbox. - Case B — the answer says
our_fault: copy itsadmit_code, prep withprovider_asset_id=<seat>-admit-asset, then10_admit. - Bounce instead of investigating, when the part is not yours and you are sure:
prep with
provider_asset_id=<seat>-reject-asset, then09_report_bounce. Copy the answer'sbounce_url,bounce_dsp,bounce_did,bounce_asset, the retry token intobounce_trace_tokenand thenotificationobject whole intobounce_notification. Then in03-remote-edc/:peer_dsp=bounce_dsp,peer_did=bounce_did,peer_asset=bounce_asset,01–05, then07_post_reject. A reject needs the item's live token — after an investigate it answers409.
Everything you post on your own seat carries ?token={{company_token}} on the
EDR; the two delivery routes are tokenless. A bounce that lands in your inbox is
investigated again (its token is the turn) before you forward the fresh answer.