hojat-gazestani / api_app

Microservice project toturail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api_app

  • Microservice project toturail
git clone https://github.com/hojat-gazestani/api_app.git && cd api_app

source ./api_env/bin/activate
cd api_project
docker build  -t api_app .
docker run -d --hostname ApiAPP40 -p 8040:8004 api_app
docker run -d --hostname ApiAPP41 -p 8041:8004 api_app
docker run -d --hostname ApiAPP42 -p 8042:8004 api_app
curl http://127.0.0.1:8040
curl -X POST -H "Content-Type: application/json" -d '{"name": "Hojat Gazestani", "age": 35}' http://0.0.0.0:8040/api/add/

About

Microservice project toturail


Languages

Language:Python 93.8%Language:JavaScript 2.7%Language:CSS 2.2%Language:HTML 1.2%Language:PowerShell 0.1%Language:Shell 0.0%Language:Dockerfile 0.0%