-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-13 Wrapping Adobe I/O Events Publishing API #15
Conversation
import java.util.UUID; | ||
import org.apache.commons.lang3.StringUtils; | ||
|
||
public class CloudEvent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use the Cloud event java SDK instead. https://github.com/cloudevents/sdk-java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes I guess we could ... but that would require quite a bit of work
let me add this to the project backlog for now: #16
String apiUrl = StringUtils.isEmpty(url) ? PublishApi.DEFAULT_URL : url; | ||
if (authInterceptor == null) { | ||
throw new IllegalArgumentException( | ||
"RegistrationService is missing a authentication interceptor"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be publish service is missing ....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
*/ | ||
@RequestLine("POST ") | ||
@Headers({"Content-Type: application/cloudevents+json"}) | ||
void post(CloudEvent body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can rename it to publish?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
* | ||
* @param body your CloudEvent Input Model | ||
*/ | ||
@RequestLine("POST ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a space here. not sure if its intentional "POST"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes extra space was not harmful but not needed either
added the Publish API wrapper service