EXPRESS API ACTIONS GENERATOR

How ShowAll
Endpoint Gets Generated

The major focus of this architecture is the ShowAll generation process. Inside the Express API Actions Generator, when you open end-points.js, you get multiple popup commands such as get, insert, delete, and alter. When you click the get command, the extension automatically generates the complete ShowAll endpoint architecture. This includes routes, controllers, services, endpoint registration, and JSON response flow.

Api/V1/journals/end-points.js
Api/
 └── V1/
      └── routes.js

STEP 3 — Generate journals Table Route

Open

Api/V1/routes.js

Click

AddTableName

Enter

journals

Generated:

Api/
 └── V1/
      └── journals/
           ├── Config/
           ├── routes.js
           └── end-points.js

Now click on end-points.js. A popup command menu appears at the top.

get
insert
delete
alter

When you click the get command, the extension automatically generates the ShowAll endpoint architecture.

Api/
 └── V1/
      └── journals/
           ├── Config/
           ├── ShowAll/
           │    ├── controller.js
           │    ├── service.js
           │    └── errors.js
           │
           ├── Insert/
           ├── Alter/
           ├── Delete/
           │
           ├── end-points.js
           └── routes.js

Commands Shown Inside end-points.js

After opening end-points.js, the extension displays CRUD action commands at the top. These commands generate different API architectures automatically.

get
insert
delete
alter

What Happens When You Click get?

The get command generates the ShowAll endpoint architecture automatically. The extension creates backend layers for reading all records from the journals table.

1

Generate ShowAll Folder

The extension automatically creates the ShowAll folder inside the journals module.

2

Create controller.js

The controller handles requests and sends JSON responses back to the browser.

3

Create service.js

The service layer contains business logic and reads JSON table data.

4

Register Endpoint

The extension automatically creates the GET endpoint inside end-points.js.

Generated ShowAll Architecture

After clicking get, the extension generates the following modular Express.js backend structure.

Api/
   V1/
      journals/

         Config/

         ShowAll/
            controller.js
            service.js
            errors.js

         Insert/
         Alter/
         Delete/

         end-points.js

      routes.js

routes.js
GET http://localhost:3000/V1/journals/ShowAll

ShowAll Endpoint Execution Flow

The request travels through multiple Express.js layers before returning JSON data.

Browser

User calls ShowAll endpoint.

routes.js

Main Express router receives the request.

end-points.js

Generated ShowAll endpoint gets executed.

controller.js

Processes request and response handling.

service.js

Reads journals JSON records from storage.

JSON Response

Records returned back to frontend application.

Why This Architecture Matters

The extension focuses on modular Express.js backend generation with clean architecture principles.

Automatic API Generation

Generate complex backend structures instantly instead of manually writing repetitive Express.js code.

Layered Backend Design

Separate routing, controllers, services, and storage logic into clean backend layers.

Scalable CRUD Architecture

Use the same architecture for Insert, Alter, Delete, and ShowAll API actions.

Professional Express Structure

Organize large backend applications using modular route and endpoint generation.