📔
Labs API Starter
  • Basic Node API
  • Contributing to this scaffold project
  • examples
    • Example Models
    • Example routes of resources
    • Swagger Setup
  • Testing
Powered by GitBook
On this page
  • Database Model using Knex
  • API Model using Axios

Was this helpful?

  1. examples

Example Models

The following examples can be found in the /api folder.

Database Model using Knex

The model at api/profile/profileModel.js provides all CRUD operations for the profile resource using a knex connection.

API Model using Axios

The model in api/dsService is an example of using a model to wrap the calls to an internally created API.

PreviousexamplesNextExample routes of resources

Last updated 4 years ago

Was this helpful?