Empty Resources (v1 API)

Hi Folks (well, FreeAgent devs!),

When I request a resource that is empty, I get something like the
following

<?xml version="1.0" encoding="UTF-8"?>

This example is from a call to GET the /expenses for a date when there
were none. I’m just wondering if there’s any scope to change this to
either be an empty list like

<?xml version="1.0" encoding="UTF-8"?>

or even 404 (Not Found)

As it is, I have to make a special case for unmarshalling which is a
bit of a chore :S

Cheers,
Toby

Hi Toby,

We’ve addressed this in API v2. If you request an empty resource the
following is returned:

<?xml version="1.0" encoding="UTF-8"?>

or in JSON:

{“projects”:}

We hope to get API v2 out into production soon.

Kind regards,

GraemeOn 25 January 2012 20:11, Toby toby.weston@gmail.com wrote:

Hi Folks (well, FreeAgent devs!),

When I request a resource that is empty, I get something like the
following

<?xml version="1.0" encoding="UTF-8"?>

This example is from a call to GET the /expenses for a date when there
were none. I’m just wondering if there’s any scope to change this to
either be an empty list like

<?xml version="1.0" encoding="UTF-8"?>

or even 404 (Not Found)

As it is, I have to make a special case for unmarshalling which is a
bit of a chore :S

Cheers,
Toby


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.

Graeme Boyd
Senior Software Engineer
FreeAgent Central Ltd
40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774

v2 will be live very soon - we’re just finalising the work on the
production infrastructure. We’ll post on here as soon as it’s switched on.

We’ll continue to keep v1 running for a while, but we’d encourage every
current app developer to migrate their apps over as soon as possible, and
all new apps should definitely use v2.

OllyOn Thursday, January 26, 2012 7:17:08 PM UTC, Toby wrote:

Thanks, that’s awesome. Not that I’ll hold you to it but when roughly
do you think v2 will be out in the wild? Are you planning to keep v1
running in parallel? I’m just trying to plan my upgrade path… :wink:

Cheers,
Toby

Great. ThanksOn Jan 26, 9:08 pm, Olly H o...@freeagent.com wrote:

v2 will be live very soon - we’re just finalising the work on the
production infrastructure. We’ll post on here as soon as it’s switched on.

We’ll continue to keep v1 running for a while, but we’d encourage every
current app developer to migrate their apps over as soon as possible, and
all new apps should definitely use v2.

Olly

On Thursday, January 26, 2012 7:17:08 PM UTC, Toby wrote:

Thanks, that’s awesome. Not that I’ll hold you to it but when roughly
do you think v2 will be out in the wild? Are you planning to keep v1
running in parallel? I’m just trying to plan my upgrade path… :wink:

Cheers,
Toby

Thanks, that’s awesome. Not that I’ll hold you to it but when roughly
do you think v2 will be out in the wild? Are you planning to keep v1
running in parallel? I’m just trying to plan my upgrade path… :wink:

Cheers,
TobyOn Jan 26, 9:32 am, Graeme Boyd graeme.b...@freeagent.com wrote:

Hi Toby,

We’ve addressed this in API v2. If you request an empty resource the
following is returned:

<?xml version="1.0" encoding="UTF-8"?>

or in JSON:

{“projects”:}

We hope to get API v2 out into production soon.

Kind regards,

Graeme

On 25 January 2012 20:11, Toby toby.wes...@gmail.com wrote:

Hi Folks (well, FreeAgent devs!),

When I request a resource that is empty, I get something like the
following

<?xml version="1.0" encoding="UTF-8"?>

This example is from a call to GET the /expenses for a date when there
were none. I’m just wondering if there’s any scope to change this to
either be an empty list like

<?xml version="1.0" encoding="UTF-8"?>

or even 404 (Not Found)

As it is, I have to make a special case for unmarshalling which is a
bit of a chore :S

Cheers,
Toby


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.


Graeme Boyd
Senior Software Engineer
FreeAgent Central Ltd
40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774

Hey Toby

Thanks for the heads-up, we’ll get this addressed prior to launch and
update you here when the fix is out on the sandbox.

Olly