Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Wordlesschunk/textTableAPI

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Json to Text Table API

A simple api to create a text based table from a json payload

API Usage

Create text based table

  POST http://localhost:8000/create

Payload:

{
  "table": {
    "headers": ["ID", "Name", "Age", "Occupation"],
    "rows": [
      [1, "Alice Smith", 30, "Engineer"],
      [2, "Bob Johnson", 45, "Teacher"],
      [3, "Charlie Brown", 28, "Designer"],
      [4, "Dana White", 35, "Developer"]
    ]
  }
}

Response:

+----+---------------+-----+------------+
| ID | Name          | Age | Occupation |
+----+---------------+-----+------------+
| 1  | Alice Smith   | 30  | Engineer   |
| 2  | Bob Johnson   | 45  | Teacher    |
| 3  | Charlie Brown | 28  | Designer   |
| 4  | Dana White    | 35  | Developer  |
+----+---------------+-----+------------+

Live API

TBC

Deployment

To deploy this project run

  $ composer install
  $ php -S localhost:8000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.