Loading ...
Sorry, an error occurred while loading the content.

4926Re: Computation and PUT vs GET

Expand Messages
  • m_covas
    Mar 1, 2005
    • 0 Attachment
      I think that you should consider the pricing as a subordinate
      resource of a trade.

      First, you POST a new trade under
      <some_prefix>/trades
      by sending some document which contains the relevant data for the
      trade. You get an ID
      Then you issue a GET (With perhaps some restrictions in the query
      string) to
      <some_prefix>/trades/<ID>/pricing
      and get a document which describes the trade and its pricing.

      You can further issue a PUT to
      <some_prefix>/trades/<ID>/status
      (So you can avoid sending the full trade description)
      to activate the trade, i.e. send it to some electronic market or
      whatever...

      M. Covas
    • Show all 4 messages in this topic