Skip to main content

A simple api package

Project description

Simple python api using flask and sqlalchemy

Create/update with PUT

Description: Saves/updates the given user's name and date of birth in the database. Request: PUT /hello/ {“dateOfBirth": "YYYY-MM-DD" } Response: 204 No Content

Note: must contains only letters. YYYY-MM-DD must be a date before the today date.

See message with GET

Description: Returns hello birthday message for the given user Request: Get /hello/ Response: 200 OK

Response Examples: A. If username's birthday is in N days: { "message": "Hello, ! Your birthday is in N day(s)" } B. If username's birthday is today: { "message": "Hello, ! Happy birthday!" }

APP variables

Application listens on localhost:5000 by default, but you can set environment variables

APP_HOST=someadress
APP_PORT=8080

APP dependencies

Application uses postgresql and need following environment values:

SQLALCHEMY_DATABASE_URI="postgresql://user:somestrongpassword@localhost:5432/users"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roverqaz_simple_api-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roverqaz_simple_api-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file roverqaz_simple_api-0.1.1.tar.gz.

File metadata

  • Download URL: roverqaz_simple_api-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for roverqaz_simple_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c527c5982b1bc5ba7d31dbb9abb1f845f04d64ea580b6f1a5d62fdb93c93e2b9
MD5 72af8b3c2f163746d46381760bf7c08b
BLAKE2b-256 e9249d3aca1c01ac91345840fc34edbda9fe1ed43abfd30fe5444894d615c638

See more details on using hashes here.

File details

Details for the file roverqaz_simple_api-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: roverqaz_simple_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for roverqaz_simple_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c9a583aaa85e8c68f7eaaa39c19c0c175eb8d3cd8739c427f79271d30eb8f90
MD5 dd308c8bf6596a9b9a9cc9e80970cebe
BLAKE2b-256 7ac604a03742fd30a3269644114bfbff24f90bb8d14e8bf33ac4089f1b9c679e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page