Skip to content

GET /api/v1/entities/:id returns the object wrapped in an array. #22

@freeborough

Description

@freeborough

In the route for getting an entity by id, e.g.

GET /api/v1/entities/1

It returns the entity object inside an array, rather than just the object itself. So I'm getting:

[{"id":1,"parent_id":null,"name":"Home","entity_type":"location","description":""}]

When I would expect:

{"id":1,"parent_id":null,"name":"Home","entity_type":"location","description":""}

The knock-on effect is that I can't then parse the JSON into an Entity class using DotNet's nice built-in JSON parser!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions