On Apr 20, 2017 5:22 PM, "Mats Wichmann" <mats at wichmann.us> wrote:

On 04/20/2017 04:08 PM, Gregg Reynolds wrote:
> On Apr 20, 2017 4:59 PM, "Thiago Macieira" <thiago.macieira at intel.com>
> wrote:
>
> On Thursday, 20 April 2017 13:49:45 PDT Gregg Reynolds wrote:
>> regarding API: are we talking about standardizing a kind of OCF API or
> just
>> cleaning up the iotivity API?  I'm thinking about DOM, a standard API for
> a
>> standard data language (HTML).  I can imagine some kind of standard OCF
>> API, with e.g. registerResource etc. which could be mapped to multiple
>> impkementation languages.
>
> OCF API is out of scope for IoTivity. That needs to be discussed in OCF
> itself.
>
>
> i thought ocf was purely protocol+datamodel.  an API is a whole 'nother
> hairball.  are they working on an api?
>
> to me the two are orthogonal. anybody can design an API for OCF.  It would
> not have any effect on compliance.  that is, compliance is about the
> protocol and datamodel, no matter what your programming api is.

It sure looks like an API to me...


alas, that depends on what you mean by API. it used to be easy: an API was
the collection of ops and data you can use in a programming language.  but
now API is routinely used to refer to an application-specific network
protocol.   :(

drawing as it does heavily on the
IETF RFCs. It's been demonstrated (modification to Copper plugin) that
you can "speak OCF" just from a web browser like Firefox, as long as
you're willing to squint to ignore complicated bits like, oh, security.
It's just that as something that looks like a RESTful web-style API,
it's not that directly applicable to people wanting to code in
C++/C/Java/etc.


i'm talking about programming language APIs.  e.g. DOM is defined
abstractly so each language supports it with it's own syntax.  we could do
this with substantial bits of iotivity.

gregg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170420/bfcbee26/attachment.html>

Reply via email to