Skip to content

Easy way to create express app with CRUD API & swagger

Notifications You must be signed in to change notification settings

Oleg-Imanilov/crud-nedb

Repository files navigation

Create express app with CRUD API in seconds

Easy way to create express app with CRUD API & swagger

  1. Create model:
    const field = require('./Field');
    FIELDS = [field({name:'a'}),field({name:'b'})];
  1. Create initial swaggerDoc
    const swaggerDocument = swaggerDoc('My API', 'Autogenerated API', '1.0');
  1. Add api per table
    crudApi(app, './api', swaggerDocument, 'my-table', FIELDS);
  1. Use prepared swaggerDocument with swaggerUi
    app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument));

This module uses

About

Easy way to create express app with CRUD API & swagger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published