Shop More Submit  Join Login
Group Info Group Founded 13 Years ago Statistics 47 Members
355,443 Pageviews877 Watchers

API Updates

Thu May 8, 2014, 10:52 AM
We are pleased to announce the release of a new API backend framework and documentation to support future growth of the deviantART & Sta.sh API's.

New Docs2 by muteor

Endpoint2 by muteor



Whats Changed?


We have been busy over the past few months creating a new framework that will allow us to make changes to the API faster.

The main new features are:
  • Versioning - We now support versioning of endpoints meaning we can make backwards incompatible changes.
  • Error Responses - We have standardized our error responses to make it easier for you to handle errors.
  • Request Specifications - We now have fine grained endpoint parameter specifications that improve request validation greatly.
  • Response Specifications - Responses are now predefined so your client will always receive consistent responses and types from the API.
  • Automated Documentation - All of the above means we can auto-generate documentation so that it doesn't become out of sync when we make changes.

Versioning


The ability to version changes to the API is one of the more important new features as it means we can now make backward incompatible changes without breaking older client implementations.

Major versions are specified via the URI of the endpoint and the current major version is v1, for example the whoami call is now: 
/api/v1/oauth2/user/whoami
Minor versions are date based E.g. 20140101 and are requested via the special request header dA-minor-version. If you do not send the header your client will always receive the latest minor version available.

Note: You do NOT need to update your current clients, all requests that do not contain the /v1/ major version in the URI are locked to v1.0 automatically.

Check out the full versioning documentation.

Errors


One of the more inconsistent parts of the old API was its error messages, we have now simplified the error codes and returns to make it easier for your clients to handle error states.

Old style errors are still returned if the request does NOT contain /v1/ in the URI. These will be documented with the endpoint and are marked as deprecated. 

Check out the full errors documentation.

The Future


The point of all this work is to make it possible to release new endpoints in the future. So far we are carefully testing the framework and considering what new endpoints can be released. We don't take the decision to release a new endpoint lightly - it is something that must be well designed, coherent and easy to use and something that we must support for a long time to come.

If you have a burning desire for a particular endpoint that would allow you to do something awesome, then we'd love to hear your thoughts. Please bear in mind that we will only be releasing new endpoints once we are confident that they will work well, be useful to a wide audience and be something we can support log term.

 

More Journal Entries

Group Info

Group
Founded 13 Years ago
Oct 25, 2001

Location
Global

Group Focus
deviantART Related

47 Members
877 Watchers
355,443 Pageviews
Daily Pageviews

Sync

When DT finishes making a brand new deviantART feature, or just fixes a bug, we first run it on our top-secret staging server. When everything's ready to go live, we sync it!
  • banks synced 21 minutes, 34s ago
  • outgoingcoyote synced 2 hours, 3 minutes ago
  • DEVlANT synced 7 hours, 4 minutes ago
  • trezoid synced 9 hours, 54 minutes ago
  • baclap synced 15 hours, 57 minutes ago
  • inazar synced 18 hours, 1 minute ago
  • inazar synced 20 hours, 5 minutes ago
  • inazar synced 20 hours, 31 minutes ago
  • szlosek synced 21 hours, 7 minutes ago
  • justgalym synced 22 hours, 1 minute ago
  • justgalym synced 22 hours, 16 minutes ago
Syncs Per Day

Comments


Add a Comment:
 
:iconkishan-bagaria:
Kishan-Bagaria Featured By Owner May 4, 2014
I did the same about a dozen times. =p
Reply
:icondj-telexture:
DJ-Telexture Featured By Owner Apr 23, 2014  Hobbyist General Artist

Hi, not reporting a bug, just suggesting something new. I'm a user who often favs a lot of art in one big hit, multiple times a day, and I was wondering if someone could place a small yellow star to the top of a thumbnail to show that you've already faved this piece. 

Say, I were to fav a piece from bloodkingowl, and a month later, I go through his gallery (and sometimes I forget if I've faved a piece and I go to fav it cause it something I liked), but then I see the little fav star icon and then it indicates that I've already faved, so it saves me a bit of time 

(and I could check by clicking the image and seeing if it was in my favourites, but this is mainly for fast browsing)

Is this suggestion able to go through? 

Reply
:icondahub:
dAhub Featured By Owner Apr 11, 2014
There's a bug in the watch list display that emerged within the past month.  I've tried filing a help desk ticket, but the response I received was dismissive and did not take this issue seriously, so I'll post the bug here in the hopes a developer will see it.

When clicking the "Next" button on the watch list, the 500th page is continuously displayed, regardless of which page you are on past 500.  With groups that approach 100,000 watchers, this prevents access to half of the watchers in the group.  Here are some example screen shots:
i.imgur.com/v6A0neT.png
i.imgur.com/X0ejOfA.png

There has been no announcement about a "500 page limit".  This feature has worked correctly for the past decade.  I really cannot fathom why this limit would suddenly be arbitrarily imposed, so this appears to be a mistake.  The "Next" button does not work as it should, so this is a bug with the site.

If someone could look into this, I would greatly appreciate it, thank you.
Reply
Flagged as Spam
:iconelectricjonny:
electricjonny Featured By Owner Apr 1, 2014  Hobbyist Photographer
Hey guys, wondering why my script electricjonny.deviantart.com/a… is breaking now.

Not a bug report, just wondering why calls to the MessageCenter DiFi are now breaking.

Thanks :)

(I can, and will, investigate further, but any help on your side would be kind)
Reply
:iconyumeruby:
yumeruby Featured By Owner Apr 2, 2014  Hobbyist General Artist
I just peeked at the history and the message center DiFi hasn't been touched in a while. Must have been some other change indirectly affecting it. Without knowing your script better the best I can suggest is comparing to actual MC queries on the site.
Reply
:iconelectricjonny:
electricjonny Featured By Owner Apr 2, 2014  Hobbyist Photographer
Oh, forgive me.  It seems that my script now works.  Not sure why the "hickup", but all is functioning normally now.
Reply
:iconyumeruby:
yumeruby Featured By Owner Apr 2, 2014  Hobbyist General Artist
Good to hear! :)
Reply
:iconelectricjonny:
electricjonny Featured By Owner Apr 2, 2014  Hobbyist Photographer
Hmm, yeah I had seen this error in Firefox 30 (alpha), but had thought it was internal.  Seems there is "some other" problem here now.  I wonder what it is.  My guess is a change in the GM API.
Reply
:iconmistycascade:
MistyCascade Featured By Owner Jan 31, 2014  Hobbyist General Artist
disregard my previous post. I just found the suggestion forum... 
Reply
Add a Comment: