package Ġtest . setup Ċ Ċ import Ġs late kit . apis .* Ċ import Ġs late kit . apis . Auth Modes Ċ import Ġs late kit . apis . Ver bs Ċ import Ġs late kit . apis . Api Base Ċ import Ġs late kit . context . Context Ċ import Ġs late kit . common . Sources Ċ import Ġs late kit . connectors . entities . App Ent Context ĊĊ Ċ @ Api ( area Ġ= Ġ" app ", Ġname Ġ= Ġ" tests ", Ġdesc Ġ= Ġ" sample Ġto Ġtest Ġfeatures Ġof ĠS late ĠKit ĠAPIs ", ĊĠĠĠ Ġauth Ġ= ĠAuth Modes . TOKEN , Ġroles = Ġ[" admin "], Ġverb Ġ= ĠVer bs . AUTO , Ġsources Ġ= Ġ[ Sources . ALL ]) Ċ class ĠSample Api ( context : ĠApp Ent Context ): ĠApi Base ( context ) Ġ{ ĊĊĠĠĠ Ġ@ Action ( desc Ġ= Ġ" accept s Ġsupplied Ġbasic Ġdata Ġtypes Ġfrom Ġsend ") ĊĠĠĠ Ġfun Ġdefault Annotation Values ( string 1 : ĠString ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ"$ string 1 " ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ@ Action ( desc Ġ= Ġ" test Ġpartial Ġoverride ", Ġauth Ġ= ĠAuth Modes . KEY ED , Ġroles = Ġ[" user "]) ĊĠĠĠ Ġfun Ġoverride Partial ( string 1 : ĠString ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ"$ string 1 " ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ@ Action ( desc Ġ= Ġ" test Ġoverrides ", Ġauth Ġ= ĠAuth Modes . KEY ED , Ġroles = Ġ[" user "], Ġsources Ġ= Ġ[ Sources . CLI ], Ġaccess Ġ= ĠAccess Level . INTERNAL ) ĊĠĠĠ Ġfun Ġoverride Full ( string 1 : ĠString ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ"$ string 1 " ĊĠĠĠ Ġ} Ċ } ĊĊĊ Ċ @ Api ( area Ġ= Ġ" app ", Ġname Ġ= Ġ" tests ", Ġdesc Ġ= Ġ" sample Ġto Ġtest Ġfeatures Ġof ĠS late ĠKit ĠAPIs ", Ġroles = Ġ[" admin "]) Ċ class ĠSample Api 1 ( val Ġcontext : ĠContext ) Ġ{ ĊĊĠĠĠ Ġ@ Action ( desc Ġ= Ġ" test Ġsimple Ġaction Ġwith Ġinputs ") ĊĠĠĠ Ġ@ Document ed ( path Ġ= Ġ" docs / apis ", Ġkey Ġ= Ġ" actions . tests . repeat ") ĊĠĠĠ Ġfun Ġrepeat ( word : ĠString , Ġcount : Int ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ( 0 Ġuntil Ġcount ). map Ġ{ Ġword Ġ}. join ToString (" Ġ") ĊĠĠĠ Ġ} Ċ } ĊĊĊ Ċ @ Api ( area Ġ= Ġ" app ", Ġname Ġ= Ġ" tests ", Ġdesc Ġ= Ġ" sample Ġto Ġtest Ġfeatures Ġof ĠS late ĠKit ĠAPIs ", Ġroles = Ġ[" admin "], ĊĠĠĠĠĠĠĠ Ġauth Ġ= ĠAuth Modes . TOKEN , Ġverb Ġ= ĠVer bs . AUTO , Ġaccess Ġ= ĠAccess Level . PUBLIC , Ġsources Ġ= Ġ[ Sources . ALL ]) Ċ class ĠSample Api 2 ( val Ġcontext : ĠContext ) Ġ{ ĊĊĠĠĠ Ġ@ Action ( desc Ġ= Ġ" test Ġsimple Ġaction Ġwith Ġinputs ") ĊĠĠĠ Ġ@ Input ( name Ġ= Ġ" word " Ġ, Ġdesc Ġ= Ġ" word Ġto Ġreturn Ġback ", Ġrequired Ġ= Ġtrue , Ġexamples Ġ= Ġ[" hello "]) ĊĠĠĠ Ġ@ Input ( name Ġ= Ġ" count ", Ġdesc Ġ= Ġ" number Ġof Ġtimes Ġto Ġrepeat ", Ġrequired Ġ= Ġtrue , Ġexamples Ġ= Ġ[" 3 "]) ĊĠĠĠ Ġfun Ġrepeat ( word : ĠString , Ġcount : Int ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ( 0 Ġuntil Ġcount ). map Ġ{ Ġword Ġ}. join ToString (" Ġ") ĊĠĠĠ Ġ} Ċ } ĊĊĊ