Skip to content

Commit c9f0718

Browse files
committed
grouped endpoints in readme for clarity
1 parent 00facd7 commit c9f0718

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

README.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
<br></br>
1616
</div>
1717

18-
## Usage / Endpoints
18+
# Usage / Endpoints
19+
20+
## Basic Info
1921
Get API info
2022
```http
2123
GET https://api.spacexdata.com
@@ -34,10 +36,21 @@ Get launch site information
3436
```http
3537
GET https://api.spacexdata.com/sites
3638
```
39+
## Launch information by dates
3740
Get all past launches
3841
```http
3942
GET https://api.spacexdata.com/launches
4043
```
44+
Get past launches by year
45+
```http
46+
GET https://api.spacexdata.com/launches/year=2017
47+
```
48+
Get past launches in a date range
49+
```http
50+
GET https://api.spacexdata.com/launches/from=2011-01-20/to=2017-05-25
51+
```
52+
53+
## Launch info by serial #'s
4154
Get launches by core serial #
4255
```http
4356
GET https://api.spacexdata.com/launches/core=B1021
@@ -46,29 +59,25 @@ Get launches by capsule serial #
4659
```http
4760
GET https://api.spacexdata.com/launches/cap=C106
4861
```
49-
Get detailed capsule information by serial #
50-
```http
51-
GET https://api.spacexdata.com/parts/cap=C106
52-
```
62+
63+
## Detailed info about each capsule
5364
Get detailed info on all capsules
5465
```http
5566
GET https://api.spacexdata.com/parts/caps
5667
```
57-
Get detailed core information by serial #
68+
Get detailed capsule information by serial #
5869
```http
59-
GET https://api.spacexdata.com/parts/core=B1021
70+
GET https://api.spacexdata.com/parts/cap=C106
6071
```
72+
73+
## Detailed info about each core
6174
Get detailed info on all cores
6275
```http
6376
GET https://api.spacexdata.com/parts/cores
6477
```
65-
Get past launches by year
66-
```http
67-
GET https://api.spacexdata.com/launches/year=2017
68-
```
69-
Get past launches in a date range
78+
Get detailed core information by serial #
7079
```http
71-
GET https://api.spacexdata.com/launches/from=2011-01-20/to=2017-05-25
80+
GET https://api.spacexdata.com/parts/core=B1021
7281
```
7382

7483
Example JSON Response for a launch

0 commit comments

Comments
 (0)