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
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Aeroski/Auto_Pin-genaration-API
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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