Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A example Docker powered boilerplate of using postgresql with python flask

NotificationsYou must be signed in to change notification settings

senvedat/python-flask-postgresql-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A example Docker powered boilerplate of using postgresql with python flask

Tech Stack

Software Language: Python

Framework: Flask Framework

Database Type: PostgreSQL

Extras: Docker, JWT, Pytest

License

MIT

API Reference

Register

POST /api/v3/merchant/user/register
ParameterTypeDescription
emailstringRequired.
passwordstringRequired.

Login

POST /api/v3/merchant/user/login
ParameterTypeDescription
emailstringRequired.
passwordstringRequired.

Response:

{"status":"APPROVED","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTY3MTAxNjIwMiwianRpIjoiNDkwZDFlMmUtOTUyNS00YTExLTg2ODAtZDRiYWNlMWNiYjBlIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IntcImNoZWNrX3Bhc3N3b3JkXCI6IG51bGwsIFwiZW1haWxcIjogXCJlbWFpbFwiLCBcImZpbmRfYnlfZW1haWxcIjogbnVsbCwgXCJmaW5kX2J5X2lkXCI6IG51bGwsIFwiaWRcIjogMiwgXCJwYXNzd29yZFwiOiBcInBhc3N3b3JkXCIsIFwicXVlcnlcIjogbnVsbCwgXCJxdWVyeV9jbGFzc1wiOiBudWxsLCBcInJlZ2lzdHJ5XCI6IG51bGwsIFwic2F2ZV90b19kYlwiOiBudWxsfSIsIm5iZiI6MTY3MTAxNjIwMiwiZXhwIjoxNjcxMDE2ODAyfQ.UwclY2gs4SfjROa8r3XW8NeDqdFLFM54JL4aJtGABb4"}

Transaction

POST /api/items/${id}

NEED JWT BEARER TOKEN (Required, in header)

ParameterTypeDescription
fromDatestringRequired. Ex: "2022-12-11"
toDatestringRequired. Ex: "2022-12-14"
merchantintegerRequired. Ex: 1
acquirerintegerRequired. Ex: 2

Response:

{"response": [        {"count":2,"currency":"USD","total":33        },        {"count":2,"currency":"GBP","total":85        }    ],"status":"APPROVED"}

Example DB

The sample database in the main file of the project in CSV format.

example_db.sql

About

A example Docker powered boilerplate of using postgresql with python flask

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp