Viewing last 25 versions of post by Angius in topic Philomena open beta / breaking API changes

Angius

The Ponut Eater
I'm compiling changes to the API in a "[gist":](https://gist.github.com/Atulin/8d9c30f387291f5de46bd3fa80e330ae). At least the changes that affect my project. It's public, so feel free to submit any revisions and use it in general.


 
That out of the way, random image seems to be broken. Old API returned just an ID of a random image, the new API returns basically the entire search results.

"

 
[
[Old API]":](https://derpibooru.org/search.json?q=pinkie+pie&random_image=y) https://derpibooru.org/search.json?q=pinkie+pie&random_image=y
"
 
[
[New API]":](https://philomena.derpibooru.org/api/v1/json/search?q=pinkie+pie&random_image=y) https://philomena.derpibooru.org/api/v1/json/search?q=pinkie+pie&random_image=y
No reason given
Edited by Angius
Angius

The Ponut Eater
I'm compiling changes to the API in a "gist":https://gist.github.com/Atulin/8d9c30f387291f5de46bd3fa80e330ae. At least the changes that affect my project. It's public, so feel free to submit any revisions and use it in general.

That out of the way, random image seems to be broken. Old API returned just an ID of a random image, the new API returns basically the entire search results.

"[Old API]":https://derpibooru.org/search.json?q=pinkie+pie&random_image=y https://derpibooru.org/search.json?q=pinkie+pie&random_image=y
"[New API]":https://philomena.derpibooru.org/api/v1/json/search?q=pinkie+pie&random_image=y https://philomena.derpibooru.org/api/v1/json/search?q=pinkie+pie&random_image=y
No reason given
Edited by Angius