Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cuzun-net/sms-listener-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Simple Storage API

This is a simple Flask API that can store and retrieve data.

Endpoints

  • POST /api/data: Store new data
  • GET /api/data: Retrieve the latest stored data

Local Development

  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
python app.py

The server will start at http://localhost:5000

Example Usage

Store Data (POST)

curl -X POST -H "Content-Type: application/json" -d '{"message":"Hello World"}' http://localhost:5000/api/data

Retrieve Data (GET)

curl http://localhost:5000/api/data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages