open All Channels
seplocked EVE Technology Lab
blankseplocked idea: dummy API server (for testing/breaking/learning)
 
This thread is older than 90 days and has been locked due to inactivity.


 
Author Topic

Pankas Carter
Amarr
Chaos Theory Alliance
Posted - 2009.12.13 09:42:00 - [1]
 

Edited by: Pankas Carter on 13/12/2009 09:42:53
Perhaps this already exists.

Would it be possible to release a "Dummy" API server that would function, from our perspective, exactly like the Real Thing, but instead of (obviously) being connected to tranquility, would have either static or locally-configurable data?

This would let us continue working/testing locally without loading the real API server, and we could also work without caching issues - which are "needless" complications when you are just starting a project.

This would also help us see when we do something stupid (send a bad request, for instance) without any kind of risk at all for the production system.

Also, it will let us test when we otherwise wouldn't be able to, such as during API downtime (or lack of a connection, for whatever reason)

Ideas/Opinions?

Desmont McCallock
Posted - 2009.12.13 10:24:00 - [2]
 

Wouldn't an API proxy service help out?

You can find one here.

Pankas Carter
Amarr
Chaos Theory Alliance
Posted - 2009.12.13 10:43:00 - [3]
 

Edited by: Pankas Carter on 13/12/2009 10:43:56
So, is that just a proxy, or does it cache as well?

If it does cache, yes - it is helpful. Not as much as having "full" control, but it's better than connecting/abusing CCP directly.

Edit:

Oops, I see - it is. Thanks!

Amida Ta
German Mining and Manufacture Corp.
Posted - 2009.12.13 14:11:00 - [4]
 

There are tons of API libraries avaiable for basically every language. If you just use those you won't have any problem with caching issues.

Besides that an API for the testserver would be helpful (especially if it included the new APIs prior to them going live)

gabereiser
Caldari
Deep Core Mining Inc.
Posted - 2009.12.14 22:05:00 - [5]
 

i agree, a sandbox api from the test server would be 100000+ helpful.

Haguu
Caldari
TLA Ltd
Posted - 2009.12.15 01:30:00 - [6]
 

A related feature would be a couple of dozen sample API keys that give some static representative data, to use for unit testing.


warweal
Posted - 2009.12.15 12:37:00 - [7]
 

I agree, I don't have any POS for example, so if I want to include a new feature about this, I cannot test my application :s

Algey
The Littlest Hobos
Posted - 2009.12.15 15:08:00 - [8]
 

Edited by: Algey on 15/12/2009 15:09:46
Originally by: Amida Ta
There are tons of API libraries avaiable for basically every language. If you just use those you won't have any problem with caching issues.


Unless an API library is open source a lot of people will choose not to use it. They are a nice tool, but using code you aren't in control of means that you don't really learn anything (which is bad if support gets dropped).

Ix Forres
Caldari
Righteous Chaps
Posted - 2009.12.15 19:22:00 - [9]
 

Originally by: Algey
Edited by: Algey on 15/12/2009 15:09:46
Originally by: Amida Ta
There are tons of API libraries avaiable for basically every language. If you just use those you won't have any problem with caching issues.


Unless an API library is open source a lot of people will choose not to use it. They are a nice tool, but using code you aren't in control of means that you don't really learn anything (which is bad if support gets dropped).



I have yet to see/hear of an API library that isn't open source...

Dragonaire
Caldari
Corax.
PURgE Alliance
Posted - 2009.12.16 06:11:00 - [10]
 

Yeah all the libraries I know of are open source of one type or another just not all the API applications have been and that has limited the ones that haven't from what I've seen badly. I personally so far haven't used any of them that want money/ISK to use nor would I want to. Not so much because I don't trust them as I've always found open source to generally be of better quality and the fixes are made more quickly and if worse comes to worse I can either fix it myself or if not find something else to do the same thing and I'm not out anything by switching Smile

Pankas Carter
Amarr
Chaos Theory Alliance
Posted - 2009.12.18 12:56:00 - [11]
 

Edited by: Pankas Carter on 18/12/2009 12:56:51
He's kind of right. Even if it's open, using an existing library will limit what you end up learning (at least if you learn more by doing than reading what's been done).

In my case, part of the project is figuring out how to interface with the data. Using the library would rob me of that adventure.

Sure, if my goal was to quickly get something rock solid, an existing library would be best. But for my purposes? It's a crutch.

edit: replaced API with library. that was nice and ambiguous :P

Catari Taga
Centre Of Attention
Middle of Nowhere
Posted - 2009.12.18 14:20:00 - [12]
 

Originally by: Pankas Carter
In my case, part of the project is figuring out how to interface with the data. Using the library would rob me of that adventure.
That may be so, but rather than having CCP set up an entire server just for your testing pleasure it seems to me that using someone else's code until you have figured out how to write your own is still the easier option.

Pankas Carter
Amarr
Chaos Theory Alliance
Posted - 2009.12.19 09:49:00 - [13]
 

Fair enough.

Now, what about when the API is down? I had wanted to look into writing something this past week, and it seems the API has been down this whole time. A locally hosted dummy API would nullify this issue.

Catari Taga
Centre Of Attention
Middle of Nowhere
Posted - 2009.12.19 12:28:00 - [14]
 

Originally by: Pankas Carter
Fair enough.

Now, what about when the API is down? I had wanted to look into writing something this past week, and it seems the API has been down this whole time. A locally hosted dummy API would nullify this issue.

We have mostly up to date examples about API return data here. If you copy & paste them into an input variable for your code that'll do.

Dragonaire
Caldari
Corax.
PURgE Alliance
Posted - 2009.12.19 22:42:00 - [15]
 

Also for those libraries like Yapeal that have option to cache the API files you can just edit the cachedUntil time in the XML files to a future time and it will use the cached files and then it doesn't need to access the API. This can be very useful for testing as you can make custom ones just for testing something you may not currently have access to in your corp etc.


 

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only