Git Product home page Git Product logo

binhminh-idcard-service's Introduction

Binh Minh Student ID Card (API Service)

Written in: Python

How it works?

Use plain.png for template and draw text via draw library

Execute Using Terminal

main.py [student_id, name, birthday, school, phone]

Example

main.py 2 "Hoàng Sơn Tùng" 08/08/1999 "THPT Chuyên Hà Nội Amsterdam" 0967134899

Output

Filepath to image

API Examples

Number API Link Params Method Examples Responses
1 / id, name, birthday, school, phone POST /?id=1&name="Hoàng Sơn Tùng"&birthday="08/08/1999"&school=ABCD&phone=0967134899 {"card_image":"output/png/2.png","pdf":"output/pdf/2.pdf","qr_image":"output/qr/2.png"}. Use this to combine with server path to download it like "http://binhminh-idcard-service.megatunger.codes/ouput/png/2.png"
2 / id DELETE /?id=1 Success

Remember to send DELETE request after get the id card.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.