badripaudel77 / dynamic-excel-generator

This is an application (web-service) that allows one to generate and download file(excel for now) based on dynamic no of columns at runtime and certain configuration values such as prefix for email , phone and so on.
1 stars 0 forks source link
apache-poi faker rest-api springboot3

The File Generator


About

Challenges


Further work


Postmand Request and Response Example


Postman Request Response Example Screenshot

  1. In the screenshot example above, inside of the headers key, we have other nested keys, namely, email, phone, name, address, dummy and these are essentially excel files' header name.
  2. This key will be as many as we put and headers will be generated accordingly.
  3. Inside of the each key, we have other key such as type, prefix, postfix, these are fundamentally, extra configurations for the value of the header to be generated. For instance, if email has following structure :
    {
    "email" : {
      "type" : "email",
      "prefix": "cse-",
      "postfix" : "ubc.com",
      "value": "some_value"
    }
    }

    In such case, one of the example emails which would be generated is cse-111222@ubc.com, where 111222 will be some randomly generated value. If we include value as well, it will just be appended to the prefix.

Example CURL request

Either run locally or pull the docker image and hit the following request