esi / esi-issues

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

Moons endpoint will return stars #1125

Open jtgill opened 5 years ago

jtgill commented 5 years ago

Bug

The moons endpoint will return data for asteroid belts, planets, stargates, stations and stars. The request below uses a star as the example, but they all follow the same pattern.

This is similar to #1099, but for a different endpoint.

Request

40009076 is the ID of a star.

https://esi.evetech.net/latest/universe/moons/40009076/

Response

Data for the star is returned.

Status Code

200

Headers

date: Fri, 05 Jul 2019 21:21:30 GMT
x-esi-request-id: f1a83bfa-4fa7-49eb-83d3-55db8c9b14c4

Body

{
   "moon_id": 40009076,
   "name": "Jita - Star",
   "position": {
      "x": 0.0,
      "y": 0.0,
      "z": 0.0
   },
   "system_id": 30000142
}

Expected

Would expect a 404.

Checklist

Check all boxes that apply to this issue:

jtgill commented 5 years ago

Not sure if it's worth a separate issue, but the asteroid_belts endpoint has the same bug.

Xamber commented 3 years ago

Internal number: TTC-3824