Skip to content

NullBy1e/qAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qAPI - Quick API

A basic util that enables you to quickly debug the requests coming to endpoint, before writing the backend itself or deploying on localhost.

Flags:

--file (-f) => File that contains data that will be returned to the client.

--data (-d) => Raw data that will be returned

--output (-o) => Filename that will contain all requests data in JSON format

You can't use -f and -d simultaneously.

Usage:

qapi { flags } port

If you don't provide a port it will default to 5000

Example:

Run on port 80

qapi 80

Run on 80 and return text:

qapi -d Hello_there! 80

Return text on request:

qapi -f example.txt 80

If vou want to return raw JSON:

{"Testing":"test"}

Make sure to escape quotes like this:

qapi -d {\"Testing\":\"test\"} 80

Install:

go install github.com/nullby1e/qAPI@latest

About

A quick API endpoint for debugging.

Resources

Stars

Watchers

Forks

Languages