Skip to content

mhsnook/flask-feeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy with Vercel

Flask + Vercel

This example shows how to use Flask 3 on Vercel with Serverless Functions using the Python Runtime.

Demo

https://flask-python-template.vercel.app/

How it Works

This example uses the Web Server Gateway Interface (WSGI) with Flask to enable handling requests on Vercel with Serverless Functions.

Running Locally

npm i -g vercel
vercel dev

Your Flask application is now available at http://localhost:3000.

One-Click Deploy

Deploy the example using Vercel:

Deploy with Vercel

API Endpoints Usage

This part of the documentation will explain how various APIs can be used to interact with the list services.

Add User to List

To add a user to a list, send a POST request to the /add_user_to_list endpoint with the following JSON payload:

{
  "list_uri": "at://did:plc:abcdefg/app.bsky.graph.list/list_rkey",
  "user_did": "did:plc:1234567890"
}

Example using cURL

curl -X POST -H "Content-Type: application/json" -d '{"list_uri": "at://did:plc:abcdefg/app.bsky.graph.list/list_rkey", "user_did": "did:plc:1234567890"}' http://localhost:3000/add_user_to_list

Response

On successful addition of a user to a list, the API will return a JSON response:

{
  "result": "User [user_did] added to list: [list_uri]"
}

Releases

No releases published

Packages

No packages published

Languages