Commit Graph

10 Commits

Author SHA1 Message Date
Lucas Holmquist 763838c89c
chore: Update examples to use latest sdk changes (#282)
* This updates all the examples to use the latest module version(3.0.0)


Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
2020-07-30 09:24:02 -04:00
Lucas Holmquist ed1d3286fa
docs: Update references of specific versions to use Latest Supported. (#211)
* docs: Update references of specific versions to use Latest Supported.

fixes #160

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
2020-06-08 15:47:30 -04:00
Lance Ball b866edddd9
docs: update README and examples with new API (#138)
This commit modifies the README to show new API usage for the
`HTTPReceiver` and `CloudEvent` classes, and updates the examples
to use this as well.

Overall structure and content has been modified to look more like
the sdk-go README.

Fixes: https://github.com/cloudevents/sdk-javascript/issues/128

Signed-off-by: Lance Ball <lball@redhat.com>
2020-05-11 09:41:05 -04:00
Lance Ball 5110ad4c67 src,fix: drop support for v0.2 and clean up contenttype
This commit removes support for the v0.2 specification. It also removes the
`contenttype` attribute from the `CloudEvent` object. While the HTTP protocol
binding specifies that in binary mode, the `datacontenttype` attribute should
map to the HTTP Content-Type header, that doesn't mean that the `CloudEvent`
object should have a `contenttype` property.

Fixes: https://github.com/cloudevents/sdk-javascript/issues/61
Fixes: https://github.com/cloudevents/sdk-javascript/issues/66

Signed-off-by: Lance Ball <lball@redhat.com>
2020-04-28 17:37:49 -03:00
Fabio José 36d61f190e Express examples with Spev 1.0
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-11-06 11:21:53 -03:00
Fabio José 6f2cbd61e4 Document example for spec 0.3
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-08-06 11:22:27 -03:00
Fabio José c7341baf96 Example for structured with extension
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-06-25 11:08:09 -03:00
Fabio José b12c6d75d4 fix type, ex with extension
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-06-25 11:05:00 -03:00
Fabio José 99310d1920 Fix binary example
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-06-21 16:48:08 -03:00
Fabio José a2ae5b9231 Express example doc
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-06-21 10:55:28 -03:00