package Ġno . nav . sy fo . rest mock . api Ċ Ċ import Ġio . ktor . application . call Ċ import Ġio . ktor . request . receive Ċ import Ġio . ktor . response . respond Ċ import Ġio . ktor . routing . Routing Ċ import Ġio . ktor . routing . post Ċ import Ġnet . logstash . log back . argument . Structured Arguments . key Value Ċ import Ġno . nav . sy fo . rest mock . Step Type Ċ import Ġno . nav . sy fo . rest mock . add Step For Ċ import Ġno . nav . sy fo . rest mock . model . Mot ta In ng aa ende For sen del se Ċ import Ġno . nav . sy fo . rest mock . model . Mot ta In ng a ande For sen del se Result at Ċ import Ġorg . slf 4 j . Logger Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġjava . util . UUID Ċ Ċ val Ġlog : ĠLogger Ġ= ĠLoggerFactory . getLogger (" dok mot - mock ") Ċ Ċ fun ĠRouting . register D ok mot Api () Ġ{ ĊĠĠĠ Ġpost ("/ rest / mot ta In ng aa ende For sen del se ") Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġjournal post Ġ= Ġcall . receive < Mot ta In ng aa ende For sen del se >() ĊĊĠĠĠĠĠĠĠ Ġval Ġsm Id Ġ= Ġjournal post . for sen del se Inform as jon . kan al Refer an se Id ĊĠĠĠĠĠĠĠ Ġlog . info (" Received Ġa Ġrequest Ġfor Ġpers isting Ġincoming Ġdocument Ġwith Ġ{}", Ġkey Value (" sm Id ", Ġsm Id )) ĊĠĠĠĠĠĠĠ Ġadd Step For ( sm Id , ĠStep Type . JO URN AL _ IN COM ING ) ĊĊĠĠĠĠĠĠĠ Ġcall . respond ( Mot ta In ng a ande For sen del se Result at ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠUUID . randomUUID (). toString (), Ġ" EN DEL IG ", ĠlistOf () ĊĠĠĠĠĠĠĠ Ġ)) ĊĠĠĠ Ġ} Ċ } Ċ