shopfully

0.0.0 • Public • Published

Flyer api

This Serverless project can serve the data in this csv file, following this specs

Instructions

  • Installation

    • clone the repo or download and unzip the project
    •  npm i
      
  • Deploy the service

     cd shopfully
     npx serverless deploy
    
  • Run test (requires cakephp locally)

     cd shopfully
     npm tests
    

Api

By default it serves on the port 4000 but the configuration can be changed in the docker-compose.yml file

  • /flyers/{{id}}: returns a single flyer

    • fields int default null: field to show
  • /flyers: returns the list of flyers, accepts the following GET arguments

    • page int default 1: page number
    • limit int default 100: page size
    • filter object default null: filter by values

the api interface is decribed more formally in the openapi.yml

Resources

Note

The logic is handled in the parser.js file, the requests are served in the handler.js file

Readme

Keywords

Package Sidebar

Install

npm i shopfully

Weekly Downloads

1

Version

0.0.0

License

MIT

Unpacked Size

145 kB

Total Files

11

Last publish

Collaborators

  • antcolag