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
Can we get a limited, counted set of cases? #4
Comments
http://services.phila.gov/PhillyApi/Data/v0.7/Service.svc/violationdetails?$format=json&$top=5&$inlinecount=allpages is working fine for me...are you getting an error? |
@timwis While your URL works for me, I've observed the following. Am I missing something obvious? Does not work: I think we're a bit confused as to when we should be including $expand=cases,locations. Currently, we include this on every getCases call, yet its inclusion seemingly results in a timeout. Could you please clarify? |
Interesting...so you can either include the |
@timwis Actually, I'm not sure if $expand=cases,locations works at all, unless I'm mistaken. For example, even the following -- which has no $top -- seemingly does not work: I was fairly sure we tested too. And just to clarify, the end goal here is to write a 'getCases' method that returns cases as we discussed at RHoK. If I'm off-base, please steer me back on course; I'm not sure I ever fully grokked cases to begin with. |
FYI, I've submitted this ticket to our support system in the City. Before I did it, though, I think I narrowed it down further. The issue is not to do with the It seems like whenever we expand cases, it often leads to a timeout. For instance, this always times out: But when we expand locations instead of cases, it works fine: |
Great - thanks Tim. I'll stay posted. |
@timwis - Do you have any update on this? Thanks. |
Mike, I followed up on this on 1/16, and could have sworn I replied here to let you know. My bad. I just followed up again today. The latest status is: The expand part of the URI query works as expected: The timeout occurs when top 5 records are requested when specifying the "top" operator. The are investigating what's causing this behavior, and keep you informed of our findings. |
Great - thanks Tim. I'll stay posted. |
@timwis any update on this? Was using the API recently and noticed that for permits, Works: http://services.phila.gov/PhillyAPI/Data/v0.7/Service.svc/permits('333274')?$expand=locations Doesn't work: http://services.phila.gov/PhillyAPI/Data/v0.7/Service.svc/permits('333274')?$expand=zoningboardappeals |
The "cases" type currently hits http://services.phila.gov/PhillyApi/Data/v0.7/Service.svc/violationdetails, which is busted if you try to pass "$top" or "$inlinecount". Is there a way to limit and get counts for the preview?
The text was updated successfully, but these errors were encountered: