Skip to content

dmccer/ver-mgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ver-mgr

静态资源项目版本管理

API

http://v.guluabc.com/v1/

获取单个项目静态资源信息

URL: repos/:name
METHOD: GET
PARAMS:

{
  owner: 'f2e'
}

RESPONSE:

{
  data: {
    owner: 'f2e',
    name: 'utcsp-web',
    url: '[email protected]/f2e/utcsp-web.git',
    version: '0.0.1',
    create_time: '2015-05-28T10:10:10',
    update_time: '2015-05-28T10:10:10',
    _id: 'asdf2sa93adsjio19dsfijdk'
  }
}

查询项目静态资源信息列表

URL: repos
METHOD: GET
PARAMS: 可选

{
  owner: 'f2e',
  name: 'utcsp-web',
  version: '0.0.1'
}

RESPONSE:

{
  data: [
    {
      owner: 'f2e',
      name: 'utcsp-web',
      url: '[email protected]/f2e/utcsp-web.git',
      version: '0.0.1',
      create_time: '2015-05-28T10:10:10',
      update_time: '2015-05-28T10:10:10',
      _id: 'asdf2sa93adsjio19dsfijdk'
    }, {
      owner: 'f2e',
      name: 'utcsp-web',
      url: '[email protected]/f2e/utcsp-web.git',
      version: '0.0.1',
      create_time: '2015-05-28T10:10:10',
      update_time: '2015-05-28T10:10:10',
      _id: 'efdf2sa93adsjio19dsfijdk'
    }
  ]
}

添加或更新项目静态资源信息

URL: 'repos/:name'
METHOD: 'POST'
PARAMS:

{
  owner: 'f2e',
  name: 'utcsp-web',
  url: '[email protected]/f2e/utcsp-web.git',
  version: '0.0.1'
}

RESPONSE:

{
  data: {
    owner: 'f2e',
    name: 'utcsp-web',
    url: '[email protected]/f2e/utcsp-web.git',
    version: '0.0.1',
    create_time: '2015-05-28T10:10:10',
    update_time: '2015-05-28T10:10:10',
    _id: 'asdf2sa93adsjio19dsfijdk'
  }
}

About

静态资源版本管理

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published