-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 03/05/2010 10:21 AM, Jeff Ortel wrote:
Would it be better to have a serial number resource which the client makes a GET request against (no params except maybe consumer_uuid) which would return ALL serial numbers, then let the client do the diff making a request for any missing certificates?
GET /consumer/{consumer_uuid}/serialnumbers/
Response would be a list of serial numbers, client diffs this list with its current list. Any diff, would be a call to
GET /consumer/{consumer_uuid}/certificates?serials=missingserial1,ms2,m4
RESTful (ness) aside, how is this different then what dgoodwin has proposed?
The difference is the client is doing the diff, and the url is different :)
jesus - -- jesus m. rodriguez | jesusr@redhat.com principal software engineer | irc: zeus red hat systems management | 919.754.4413 (w) rhce # 805008586930012 | 919.623.0080 (c) +---------------------------------------------+ | "Those who cannot remember the past | | are condemned to repeat it." | | -- George Santayana | +---------------------------------------------+