Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 1.26 KB

readme.md

File metadata and controls

69 lines (43 loc) · 1.26 KB

comic-express

Master

Build Status

Develop

Build Status

Usage

  • git clone

  • cp ./config/env.sample.js ./config/env.js

    • set env param in ./config/env.js
  • cp ./config/session.sample.js ./config/session.js

    • set session secret
  • create seed user with admin permission

    • modify user id and passwd first
node seed.js
  • launch with node ./bin/www or else

API

category

path /category/

catalog

path /catalog/

  • category title

    • from response of api category ex : 冒险类
  • title for search comic-express

  • sort optional,could be set to following

    • hot , sort for hot catalog
    • update , sort for recent updated
  • limit default to 30

  • skip (offset) default to 0

  • http method POST to send multiple catalog as array

    • auto create or update
    • bad in error handing

chapter

path /catalog/{catalog_id}/chapter

  • catalog_id
  • limit = 2000

page

path /catalog/{catalog_id}/chapter/{chapter_id}/page

  • catalog_id
  • chapter_id
  • limit = 1000