Free Sample Rest API Server for Testing and Prototyping

Python-Flask-JWT based Rest API server, can be used to API Automation learning, prototyping.

Recently I was looking to try out an API automation tool for demo, and as I wanted to show test-case validation as well which required connecting to the backend DB, I wasn't able to find a proper public one with all my criteria's.
Finally wrote a small Rest API server and pushed it to github, so anyone can use it and learn. It is very easy to setup and use with little skills in python and virtual env.

You can clone or download it from github:
https://github.com/saratkr/Py-Flask-API-Server

Please refer the readme.md for setting up the server in your windows machine. It has not been tested in Linux server, but can be made working with minimal changes.

Start the server from cmd line in windows:











Login: Once its running in your PC, you can get a JWT token with the login API endpoint:
http://127.0.0.1:5000/api/v1/users/login.
The default username/password is admin/admin.
See screenshot from Postman:



The Login response will give a Authorization token which will be used in the header of all other API requests.
Sample Request: Please see a sample getusers request:




Following API endpoints are supported:
  • Create new User: POST /api/v1/users/create
  • Get all users: GET /api/v1/users/getusers
  • Get one user with ID: GET /api/v1/users/1
  • Delete one user with ID: DELETE /api/v1/users/delete/2
  • Delete one user with email: DELETE /api/v1/users/delete
  • Update one user: UPDATE /api/v1/users/update
So please go ahead prototype your application, or try/learn Rest API Testing or even learn how to write API automation scripts using soapUI or Postman.

Learn complete SoapUI Testing with No Coding at Udemy using the link here.

1 comment:

  1. If you're attempting to burn fat then you certainly need to get on this brand new custom keto meal plan diet.

    To design this keto diet service, licenced nutritionists, personal trainers, and professional chefs have joined together to provide keto meal plans that are powerful, convenient, cost-efficient, and delightful.

    Since their first launch in 2019, hundreds of clients have already remodeled their body and well-being with the benefits a smart keto meal plan diet can provide.

    Speaking of benefits; in this link, you'll discover eight scientifically-tested ones provided by the keto meal plan diet.

    ReplyDelete