Skip to content

DeweshSoc/lc_tcg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LC/tcg

APACHE 2.0 License

A leetcode based RESTful testcase generator API.

API Reference

For comprehensive documentation visit - LC/tcg API docs

Servers:

  • Local - http://localhost:5000
  • Remote - https://lc-tcg-api.cyclic.app/ choose remote server when using the api documentation to try out endpoints

Arrays

Get a random array

  GET /api/arrays/0
Parameter Type Description
- - no parameter

RETURNS : a random array

Get custom list of arrays

  POST /api/arrays/1
Parameter Type Description
count number Required. Number of arrays to generate
minSz number Required. Minimum possible array size
maxSz number Required. Maximum possible array size
minEle number Required. Minimum possible array element size
maxEle number Required. Maximum possible array element size
uniqueEle boolean Required. True if all elements in array should br unique

RETURNS : A list of count number of arrays each of size in range [minSz,maxSz] having elements in range [minEle,maxEle]

Run Locally

Clone the project

  git clone https://github.com/DeweshSoc/lc_tcg.git

Go to the project directory

  cd lc_tcg

Install dependencies

  npm install .

Start the server

  npm run start

Server available at http://localhost:5000

Authors