OHDSI Home | Forums | Wiki | Github

WebAPI URL format in OHDSI Web Apps

@Frank, @Chris_Knoll, @cahilton, @lee_evans

As OLYMPUS is coming together, we’ve noticed that cross application WebAPI URLs seem to be tripping up over a difference in trailing slashes. Looking at the apps with “gears,” Hermes is expecting a trailing slash in the base URL (http://api.ohdsi.org/WebAPI/), Heracles is not expecting one (http://api.ohdsi.org/WebAPI).

I think this may be a matter of taste. I often see RESTful endpoints as being referred to with the beginning slash like /pet (a la Swagger) or the Facebook Graph APIs ). Which would lead me to think that the trailing slash would not be a standard part of the baseURL. But I know there may be plenty of examples where it is the other way.

My main goal is that we 1) sync it up, and 2) following prevailing standards if they exist. If they don’t exist, then I’m fine with sticking with what was done first (i.e., Hermes).

Thoughts?

Here’s an article that discusses the issue:

Easy enough to keep them then.

t