V3 and JSON API

Joseph,

Thanks for posting a link to the v3 engine. I'll try to review it this week and think about how to get Katello onto v3 as well. I have some questions though. Just out of curiosity, how strictly are you planning on following the json api spec? Are you planning on following their format of a pluralized root node (users, architectures, hosts, etc) for PUT/POST/DELETE requests:

http://jsonapi.org/format/#crud-updating-individual-resources

Also, are you planning on supporting ALL of the json api format including stuff like:

fetching includes
http://jsonapi.org/format/#fetching-includes

sparse fieldsets
http://jsonapi.org/format/#fetching-sparse-fieldsets

sorting (with - fields)
http://jsonapi.org/format/#fetching-sorting

Thanks.

David

> From: "David Davis" <daviddavis@redhat.com>
> To: "Joseph Magen" <jmagen@redhat.com>
> Cc: "foreman-dev" <foreman-dev@googlegroups.com>
> Sent: Sunday, October 19, 2014 3:55:46 PM
> Subject: [foreman-dev] V3 and JSON API
>
> Joseph,
>
> Thanks for posting a link to the v3 engine. I'll try to review it this week
> and think about how to get Katello onto v3 as well. I have some questions
> though. Just out of curiosity, how strictly are you planning on following
> the json api spec? Are you planning on following their format of a
> pluralized root node (users, architectures, hosts, etc) for PUT/POST/DELETE
> requests:
>
> http://jsonapi.org/format/#crud-updating-individual-resources

Yes

> Also, are you planning on supporting ALL of the json api format including
> stuff like:
>
> fetching includes
> http://jsonapi.org/format/#fetching-includes

Yes, but not a priority

> sparse fieldsets
> http://jsonapi.org/format/#fetching-sparse-fieldsets

Yes, but not a priority

> sorting (with - fields)
> http://jsonapi.org/format/#fetching-sorting

Yes, not a big deal to support params[:sort] instead of params[:order]

··· ----- Original Message -----

Thanks.

David


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.