Skip to content

once a request is sent to the API it automatically generates a pin and serial number for user. The user can also validate the serial number and pin by sending a request to the validation endpoint

Notifications You must be signed in to change notification settings

Aeroski/Auto_Pin-genaration-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto_Pin-genaration-API

once a request is sent to the API it automatically generates a pin and serial number for user. i created a model.py file which handles creation of database using SQLAlchemy. in my model.py i created a class called generate as the name of my database i use sqlite as my database. i create an app.py file to handle my APIs. the endpoint for generating pin and serial number is api.add_resource(generate_pin, '/api/generate') the endpoint for validating pin and serial number is api.add_resource(validate_pin, '/api/generate/validate/string:SN') the validation endpoint returns 1 if pin is valid and 0 if invalid

About

once a request is sent to the API it automatically generates a pin and serial number for user. The user can also validate the serial number and pin by sending a request to the validation endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors