You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Fetch Constructors standings from points table | Yes - 1 | The year from which you want to extract points table for (1950 - current) | current year |
| Fetch fastest laps for all races in a year | Yes - 1 | The year from which you want to extract fastest laps | current year |
109
91
92
+

93
+
110
94
## Snapshots
111
95
112
96
If you want to have a look at the output from the given functions check [this](https://github.com/yashkathe/F1-API/tree/master/__tests__/__snapshots__).
113
97
98
+
## Accessing API through Docker
99
+
100
+
The docker image of the rest api can be found on [Docker Hub](https://hub.docker.com/repository/docker/katheyash/f1-api-node/general)
101
+
102
+
-### Pull the Image and start the development in no time
103
+
104
+
#### 1. Pull from Docker Hub
105
+
106
+
```bash
107
+
docker push katheyash/f1-api-node:tagname
108
+
```
109
+
110
+
#### 2. Pull from Github Container Registry
111
+
112
+
```bash
113
+
docker pull ghcr.io/yashkathe/f1-api-node:2
114
+
```
115
+
116
+
-### The default port is 80
117
+
118
+
```bash
119
+
docker run -p 80:80 --name f1-api-node-test-1 katheyash/f1-api-node:1
120
+
```
121
+
122
+
-### If .env file exists
123
+
124
+
```bash
125
+
docker run --env-file ./.env -p 3001:3001 --name f1-api-node-test-1 f1-api-node:1
126
+
```
127
+
114
128
## Usage
115
129
116
130
WARNING: Abusing this library may result in an IP ban from the host website.
0 commit comments