1
1
# Geek-Jokes
2
2
3
- ## A Flask RESTful API to get random geek jokes
3
+ ## A RESTful API to get random geek jokes written in Flask
4
4
[ ![ forthebadge] ( http://forthebadge.com/images/badges/made-with-python.svg )] ( http://forthebadge.com )
5
5
[ ![ forthebadge] ( http://forthebadge.com/images/badges/gluten-free.svg )] ( http://forthebadge.com )
6
6
@@ -12,36 +12,36 @@ The Geek Jokes api is for any developer needing some random (geeky) jokes in the
12
12
13
13
## URL
14
14
```
15
- GET: https://geek-jokes.sameerkumar.website/api
15
+ GET: https://geek-jokes.sameerkumar.website/api?format=json
16
16
```
17
17
18
18
## Usage
19
19
Just do a GET request on the API URL.
20
20
```
21
- GET: https://geek-jokes.sameerkumar.website/api
21
+ GET: https://geek-jokes.sameerkumar.website/api?format=json
22
22
```
23
23
24
24
## Examples
25
25
26
26
### cURL
27
27
```
28
28
curl -X GET \
29
- 'https://geek-jokes.sameerkumar.website/api'
29
+ 'https://geek-jokes.sameerkumar.website/api?format=json '
30
30
```
31
31
32
32
### Python
33
33
``` Python
34
34
import requests
35
35
36
- requests.get(' https://geek-jokes.sameerkumar.website/api' )
36
+ requests.get(' https://geek-jokes.sameerkumar.website/api?format=json ' )
37
37
```
38
38
39
39
### Node.js (es6)
40
40
``` Javascript
41
41
var request = require (' request' );
42
42
43
43
let options = {
44
- url: ' https://geek-jokes.sameerkumar.website/api' ,
44
+ url: ' https://geek-jokes.sameerkumar.website/api?format=json ' ,
45
45
method: ' GET'
46
46
}
47
47
@@ -51,10 +51,14 @@ request(options, (err, response, body) => {
51
51
});
52
52
```
53
53
### Any browser
54
- visit the url: https://geek-jokes.sameerkumar.website/api to get a joke. Press refresh button for more jokes.
54
+ visit the url: https://geek-jokes.sameerkumar.website/api?format=json to get a joke. Press refresh button for more jokes.
55
55
56
56
## License
57
57
MIT
58
58
59
59
## Contact
60
- Contact me here: [ sameer18051998@gmail.com ] ( mailto:sameer18051998@gmail.com )
60
+ Contact: [ sam@sameerkumar.website ] ( mailto:sam@sameerkumar.website )
61
+
62
+ ## Author
63
+ Sameer Kumar
64
+ https://sameerkumar.website
0 commit comments