This is a simple Flask API that serves data from a text file (test.txt
) as JSON.This was built as a
simple project to better understand APIs
-
Clone the repository:
git clone https://github.com/xreedev/SCP-API.git
-
Navigate to the project directory:
cd SCP-API
-
Install the required dependencies:
pip install Flask
-
Run the Flask application:
python app.py
-
Access the API in your web browser or using a tool like cURL:
http://localhost:7775/
app.py
: Contains the Flask application code.test.txt
: Input data file.test3.json
: Output JSON file.README.md
: Project documentation.
The apicall.py file can be sued to test run the api after updating the ipaddress value with your host address
This project is licensed under the MIT License - see the LICENSE file for details.