Spacex-api: Next Launches

Created on 22 Aug 2018  路  2Comments  路  Source: r-spacex/SpaceX-API

The return of endpoint should be an array, not an object, to maintain the endpoint pattern of launches.

This resolves to cases where there are more than one future launches.

Question

All 2 comments

Next and Latest can only return a single launch, so no array is needed

Past, Upcoming, and All launches can have more than 1 launch returned, so an array is used

I think you're looking for the /launches/upcoming endpoint, which has all the future launches. Next and Latest are just convenience endpoints for getting the most recent or the most upcoming launch, without sending unnecessary extra data.

@jakewmeyer Certainly, thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samg11 picture samg11  路  4Comments

samg11 picture samg11  路  3Comments

MattoDeg picture MattoDeg  路  6Comments

haroldadmin picture haroldadmin  路  6Comments

andrewconnell picture andrewconnell  路  5Comments