Skip to content

Commit 85c5d0d

Browse files
committed
Instructions for API
1 parent 8079ec6 commit 85c5d0d

File tree

1 file changed

+55
-2
lines changed

1 file changed

+55
-2
lines changed

README.md

+55-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,55 @@
1-
# Phishing-URL-Detection-Workshop
2-
MIST Machine Leaning in Cybersecurity Workshop Code Dump Repository
1+
2+
# Phishing URL Detection Workshop
3+
4+
Welcome fellow MIST members!\
5+
\
6+
In this repository you shall find the code dump for the workshop organised under MIST for Artificial Intelligence and Machine Learning in Cybersecurity for club members. To put our model to test we also have an API set up for users to test out using custom frontend.
7+
8+
9+
## Run API Locally
10+
11+
Fork and clone the project
12+
13+
```bash
14+
git clone https://github.com/RampageousRJ/Movie-Recommender-System.git
15+
```
16+
17+
18+
Install all the dependencies using the command
19+
20+
```bash
21+
pip install -r requirements.txt
22+
```
23+
24+
After setting up all the dependancies, run the python script 'app.py' in the root directory which would run on the port 5000 by default (can be changed)
25+
26+
```bash
27+
python app.py
28+
```
29+
30+
31+
## API Reference
32+
33+
#### Send a POST request to the local URL only after the API is up and running
34+
35+
```
36+
POST http://127.0.0.1:5000
37+
````
38+
39+
Type of input for the API
40+
41+
| Parameter | Type | Description |
42+
| :-------- | :------- | :-------------------------------- |
43+
| `url` | `string` | Enter url to be checked|
44+
45+
The API processes the URL and returns the output in JSON format having the following fields:
46+
47+
48+
| Parameter | Type | Description |
49+
| :-------- | :------- | :-------------------------------- |
50+
| `prediction` | `string` | 'Good URL' or 'Bad URL' based on the prediction, can be changed on the 'app.py' code as preferred.|
51+
52+
## Feedback
53+
54+
If you have any feedback or queries, please reach out to [Rishabh](https://github.com/RampageousRJ)
55+

0 commit comments

Comments
 (0)