| |
Perff Administrator
Posts: 1676 |
New feature: The CSDb webservice.
I just started creating a new feature for CSDb. A webservice. (If that it the right word to use.. :) )
The idea about this 'webservice' is that anyone can request any of the information in CSDb much like you can now with the search and advanced search features, but instead of getting some HTML back made for humans to read, you get an XML-structure back for machines to read. In this way you can make scripts or whatever that uses the CSDb webservice to extract information from CSDb for use on other websites or what you can think of.
So far I only made the basic workings, and it is only just useable for the public, but I've decided to release it now to get some feedback before I get stuck in a standart that might not be good.
I must admit that my experience with webserviceses and XML is only limited, so bear over with me. :)
Anyway. Check out: http://noname.c64.org/csdb/webservice |
|
... 4 posts hidden. Click here to view all posts.... |
| |
Bones99
Registered: May 2005 Posts: 30 |
Thats awesome. many thanks . |
| |
Marauder/GSS Account closed
Registered: Jul 2006 Posts: 224 |
Quote:
So far you can only request info on one of the four basic entry-types by their internal ID in CSDb. The ID can be seen in the URL when browsing CSDb.
Perff, any plans for implementing a "search"-function to retrieve the ID's of releases/groups/sceners etc.? |
| |
Bones99
Registered: May 2005 Posts: 30 |
first off.. apologies .. i did'nt mean to hit your server so hard
i'm writing an android app that connects to your web-service and gets a random release and shows the screenshot, i think i was retrying too frequently (some release ID's are null)
should i put in a delay to prevent this condition, if so can you advise what a decent delay would be ?
sorry again..
http://reidspace.com/CSDBRR/ |
| |
JCH
Registered: Aug 2008 Posts: 200 |
I'm using this web service for DeepSID and for the most part it works really well.
Two things I'd like to be improved if possible:
1. Newline characters in all comment blocks of releases as is used here. As it is now, all comments are just handed to me as one enormous paragraph each. \n chars or whatever, I'll just convert it to <br /> for use at the site.
2. Comments are rare for "sid" type entries but it does happen, and when it does it could be nice if they're included in the XML returned. Example: Vicious SID 2 - Cybernoid 2
Can you fix these? =) |
| |
chatGPZ
Registered: Dec 2001 Posts: 11351 |
isnt arbitrary inserting of linebreaks a bit counterproductive for what you want on a web frontend? |
| |
JCH
Registered: Aug 2008 Posts: 200 |
I think it makes perfect sense. Allow me to demonstrate.
Here's what a comment by LMan looks like in it's original environment:
Here's what it looks like at my site:
Not quite as cool, is it?
It gets even worse for posts where stuff is listed. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11351 |
i see. should be <p> then though :) |
| |
JCH
Registered: Aug 2008 Posts: 200 |
Yeah, that might work better. |
| |
JCH
Registered: Aug 2008 Posts: 200 |
Talked to Perff via PM. The newline stuff was my bad and the second one is now fixed. |
| |
instant
Registered: Mar 2020 Posts: 20 |
I'd be happy to help build out the search function in the web service.
I think the depth is returning too much data. Even set at 2 it's returning several levels of data deeper than I would expect. I could help fix this too. |
Previous - 1 | 2 - Next |