Navigation Menu

Skip to content
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

Bah 406: Add new event type for all sellables #44

Merged
merged 4 commits into from Mar 12, 2019

Conversation

ivange94
Copy link

No description provided.

@Override
public Event asAtomFeedEvent(Object[] arguments) throws URISyntaxException {
Concept concept = (Concept) arguments[0];
String url = String.format(this.url, this.category, concept.getUuid());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL is what is published here. Going by this line, the content in the event is going to be something like - "/openmrs/ws/rest/v1/reference-data/sellable/fe334cb7-t3tb-0037-70f7-kjditree2222"

We actually want the URL to be "/openmrs/ws/rest/v1/reference-data/resources/fe334cb7-t3tb-0037-70f7-kjditree2222", because thats what "ResourcesController" controller exposes API to.

@angshu angshu merged commit 1190c49 into Bahmni:master Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants