@hke/ms-fileservice
file microservice
Last updated 2 years ago by heiko87 .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @hke/ms-fileservice 
SYNC missed versions from official npm registry.

@hke/ms-fileservice

npm version Build Status Maintainability Test Coverage

REST Fileservice with versioning and parallel datatypes

Routes

GET http://localhost:3300/info // shows version, uptime, server timestamp
GET http://localhost:3300/ // shows all files
GET http://localhost:3300/c16512c0-5842-4aa0-9579-4f4ba15c8738 // shows one file
GET http://localhost:3300/c16512c0-5842-4aa0-9579-4f4ba15c8738/detail // shows all versions and types for one file
GET http://localhost:3300/c16512c0-5842-4aa0-9579-4f4ba15c8738/download // downloads file
GET http://localhost:3300/c16512c0-5842-4aa0-9579-4f4ba15c8738/download/1 // downloads version 1 default type of file
GET http://localhost:3300/c16512c0-5842-4aa0-9579-4f4ba15c8738/download/pdf // downloads latest version type pdf of file
GET http://localhost:3300/c16512c0-5842-4aa0-9579-4f4ba15c8738/download/pdf/1 // downloads downloads type pdf version 1 of file
GET http://localhost:3300/c16512c0-5842-4aa0-9579-4f4ba15c8738/download/1/pdf // downloads downloads type pdf version 1 of file

POST http://localhost:3300/ // adds new file
POST http://localhost:3300/c16512c0-5842-4aa0-9579-4f4ba15c8738 // adds new version of file
POST http://localhost:3300/c16512c0-5842-4aa0-9579-4f4ba15c8738/true // adds parallel type to latest version

Todo

  • [x] Add nconf
  • [ ] Add authentication
  • [ ] Add proper documentation
  • [x] Add other tests than postman

Current Tags

  • 1.0.4                                ...           latest (2 years ago)

5 Versions

  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 2
Dependencies (9)
Dev Dependencies (17)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |