Changes between Version 229 and Version 230 of WikiStart


Ignore:
Timestamp:
08/14/19 09:08:38 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v229 v230  
    385385* Write your own partiesserver that correctly implements the [https://tracinsy.ewi.tudelft.nl/pubtrac/GeniusWebPartiesServer partiesserver interface]. This boils down to creating a webserver that  correctly can handle calls to a number of prescribed URLs and websockets.
    386386
    387 = JSON layout
    388 This section discusses how domains and profiles are looking in JSON. JSON is the communication format, java instances of Domain, Profile and Bid can easily be converted back and forth to JSON using the jackson objectmapper (see the test and example codes)
    389 
    390 == Create a domain
    391 
    392 
    393 == Bids ==
    394 A Bid is a map with the issue names as keys (strings) and the values being an element from the valueset as in the domain description.
    395 
    396 A bid typically looks like
    397 {{{
    398 { "salary":"2000", "fte":"0.8", "work from home","0.6" ...}
    399 }}}
    400 
    401 Notice that in this example, issues like fte are discrete (possible values are enumerated). Therefore the issue value is double quoted. If the issue were numeric, we would write the issue value without quotes.
    402387
    403388