Skip to content

marcinoo01/file-string-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-string-generator

java 17

Application generates a file with random unique strings after entering specified endpoint. User of api has to specify from what charaters the strings are about to be made, min and max size of strings and amount of them. Project uses webflux, and embedded mongo-db for storing payloads.

Three endpoints are specified:

url: api/v1/payloads

usage: determines if possible to generate declared amount of strings then generates a file, and fullfil it with desired amount of strings otherwise throws exception
request type: POST
expected response: 201
example request: Screenshot 2022-10-24 at 20 26 35 generated file: Screenshot 2022-10-24 at 20 27 20

url: api/v1/payloads

usage: checks how many files are currently being written
request type: GET
expected response: 200
example request with 3 running task in parallel: Untitled

url: api/v1/payloads/{id}

usage: gets details about desired payload
request type: GET
expected response: 200
example request: Screenshot 2022-10-24 at 22 04 30

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages