package Ġru . ot us . ot us kotlin . marketplace . backend . app . kot less Ċ Ċ import Ġio . kot less . dsl . lang . http . Post Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . map pers . k mp . respond Demand Create Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . map pers . k mp . respond Demand Delete Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . map pers . k mp . respond Demand List Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . map pers . k mp . respond Demand Offers Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . map pers . k mp . respond Demand Read Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . map pers . k mp . respond Demand Update Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . map pers . k mp . set Query Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . repository . dynamodb . Demand Repository D ynamoDB Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . repository . dynamodb . Proposal Repository D ynamoDB Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . repository . in memory . demand s . Demand Repo InMemory Ċ import Ġru . ot us . ot us kotlin . marketplace . backend . repository . in memory . pro posals . Proposal Repo InMemory Ċ import Ġru . ot us . ot us kotlin . marketplace . business . logic . backend . Demand Crud Ċ import Ġru . ot us . ot us kotlin . marketplace . transport . k mp . models . demand s . Mp Request Demand Create Ċ import Ġru . ot us . ot us kotlin . marketplace . transport . k mp . models . demand s . Mp Request Demand Delete Ċ import Ġru . ot us . ot us kotlin . marketplace . transport . k mp . models . demand s . Mp Request Demand List Ċ import Ġru . ot us . ot us kotlin . marketplace . transport . k mp . models . demand s . Mp Request Demand Offers Ċ import Ġru . ot us . ot us kotlin . marketplace . transport . k mp . models . demand s . Mp Request Demand Read Ċ import Ġru . ot us . ot us kotlin . marketplace . transport . k mp . models . demand s . Mp Request Demand Update Ċ import Ġkotlin . time . Experimental Time Ċ import Ġkotlin . time . hours Ċ Ċ @ Opt In ( Experimental Time :: class ) Ċ private Ġval Ġcr ud Ġ= ĠDem and Crud ( ĊĠĠĠ Ġdemand Repo Prod Ġ= ĠDem and Repository D ynamoDB (), ĊĠĠĠ Ġdemand Repo Test Ġ= ĠDem and Repo InMemory ( ttl Ġ= Ġ 2 . hours ), ĊĠĠĠ Ġproposal Repo Prod Ġ= ĠProposal Repository D ynamoDB (), ĊĠĠĠ Ġproposal Repo Test Ġ= ĠProposal Repo InMemory ( ttl Ġ= Ġ 2 . hours ) Ċ ) Ċ Ċ @ Post ("/ demand / list ") Ċ fun Ġdemand List (): ĠString ? Ġ= Ġhandle Ġ{ Ġquery : ĠM p Request Demand List ? Ġ-> ĊĠĠĠ Ġquery ?. also Ġ{ Ġset Query ( it ) Ġ} ĊĠĠĠ Ġcr ud . list ( this ) ĊĠĠĠ Ġrespond Demand List () Ċ } Ċ Ċ @ Post ("/ demand / create ") Ċ fun Ġdemand Create (): ĠString ? Ġ= Ġhandle Ġ{ Ġquery : ĠM p Request Demand Create ? Ġ-> ĊĠĠĠ Ġquery ?. also Ġ{ Ġset Query ( it ) Ġ} ĊĠĠĠ Ġcr ud . create ( this ) ĊĠĠĠ Ġrespond Demand Create () Ċ } Ċ Ċ @ Post ("/ demand / read ") Ċ fun Ġdemand Read (): ĠString ? Ġ= Ġhandle Ġ{ Ġquery : ĠM p Request Demand Read ? Ġ-> ĊĠĠĠ Ġquery ?. also Ġ{ Ġset Query ( it ) Ġ} ĊĠĠĠ Ġcr ud . read ( this ) ĊĠĠĠ Ġrespond Demand Read () Ċ } Ċ Ċ @ Post ("/ demand / update ") Ċ fun Ġdemand Update (): ĠString ? Ġ= Ġhandle Ġ{ Ġquery : ĠM p Request Demand Update ? Ġ-> ĊĠĠĠ Ġquery ?. also Ġ{ Ġset Query ( it ) Ġ} ĊĠĠĠ Ġcr ud . update ( this ) ĊĠĠĠ Ġrespond Demand Update () Ċ } Ċ Ċ @ Post ("/ demand / delete ") Ċ fun Ġdemand Delete (): ĠString ? Ġ= Ġhandle Ġ{ Ġquery : ĠM p Request Demand Delete ? Ġ-> ĊĠĠĠ Ġquery ?. also Ġ{ Ġset Query ( it ) Ġ} ĊĠĠĠ Ġcr ud . delete ( this ) ĊĠĠĠ Ġrespond Demand Delete () Ċ } Ċ Ċ @ Post ("/ demand / offers ") Ċ fun Ġdemand Offers (): ĠString ? Ġ= Ġhandle Ġ{ Ġquery : ĠM p Request Demand Offers ? Ġ-> ĊĠĠĠ Ġquery ?. also Ġ{ Ġset Query ( it ) Ġ} ĊĠĠĠ Ġcr ud . offers ( this ) ĊĠĠĠ Ġrespond Demand Offers () Ċ } Ċ