esi / esi-issues

Issue tracking and feature requests for ESI
https://esi.evetech.net/
209 stars 23 forks source link

Add structure_id to the response of /universe/structures/{structure_id}/ #1343

Closed ebeisecker closed 1 year ago

ebeisecker commented 1 year ago

Feature Request

It would be nice if the response from /universe/structures/{structure_id}/ would return the ID of the structure being queries structure_id.

Use case

When writing an application that deserializes the response of /universe/structures/{structure_id}/ into an object it's messy to have to manually "add" the structure_id to object instead of it being populated as part of the deserialization process

Authentication

This would be modifying the existing route that uses scope esi-universe.read_structures.v1

Example return

Propose what an example return might look like. E.g.:

GET /universe/structures/123456789/?datasource=tranquility

{
  "name": "My Structure",
  "owner_id": 1234567,
  "position": {
    "x": -112983717892,
    "y": 123897598718,
    "z": 105182759178
  },
  "solar_system_id": 3456768,
  "type_id": 345678,
  "structure_id": 123456789
}

Checklist

Check all boxes that apply to this issue:

Blacksmoke16 commented 1 year ago

Duplicate of #1122