首页 > 其他分享 >2020-1-28-coding获取项目列表

2020-1-28-coding获取项目列表

时间:2023-09-17 19:22:39浏览次数:32  
标签:git false coding 28 2020 test xutongxin data

layout: post
title: coding获取项目信息
categories: coding-post
tag: coding api

coding获取项目信息

接口URL

https://<team-name>.coding.net/api/projects

请求方式

GET

请求header参数:

cookie:eid

请求Query参数

参数 示例值 必填 参数描述
page 1 页数
pageSize 1000 每页容量
type 1
teamType 1

成功返回参数

参数 示例值 参数描述
code 0 状态码
data.list ··· 项目信息列表
data.list.description ··· 项目描述
data.list.ssh_url xxxx.git git地址
data.list.owner_user_name xutongxin 项目所有人
data.list.id 123321 项目id
data.list.current_user_role admin 该用户在此项目权限
data.page 1 当前页码
data.totalPage 1 总页码
data.totalRow 3 总项目数=总行数

成功示例数据

{
	"code": 0,
	"data": {
		"list": [
			{
				"created_at": 1563349074000,
				"backend_project_path": "/team/xutongxin/project/test",
				"description": "123",
				"git_url": "[email protected]:xutongxin/test.git",
				"ssh_url": "[email protected]:xutongxin/test.git",
				"svn_url": "svn+ssh://[email protected]/xutongxin/test",
				"is_public": false,
				"https_url": "https://e.coding.net/xutongxin/test.git",
				"vcs_type": "git",
				"subversion_url": "svn.e.coding.net/xutongxin/test",
				"id": 163693,
				"name": "test",
				"name_pinyin": "test",
				"display_name": "test",
				"owner_id": 0,
				"owner_user_name": "xutongxin",
				"owner_user_picture": "https://coding-net-production-static-ci.codehub.cn/WM-REXT-AVATAR-hhRyeVzAOcdIIllXCioP.jpg",
				"owner_user_home": "<a href=\"https://xutongxin.coding.net/u/ysscsaBHedA\">yssdcpBHedA</a>",
				"project_path": "/p/test",
				"status": 1,
				"type": 2,
				"updated_at": 1567398064000,
				"fork_count": 0,
				"star_count": 0,
				"watch_count": 0,
				"pin": false,
				"depot_path": "/p/test/d/test/git",
				"forked": false,
				"un_read_activities_count": 0,
				"icon": "/static/project_icon/scenery-11.png",
				"current_user_role_id": 90,
				"current_user_role": "admin",
				"stared": false,
				"watched": false,
				"recommended": 0,
				"shared": false,
				"is_member": false,
				"max_member": 0,
				"groupId": 0,
				"plan": 1,
				"isTeam": true,
				"archived": false,
				"isDemo": false,
				"taskHide": true,
				"default_depot_name": "test",
				"agile_feature_initialized": false
			}
		],
		"page": 1,
		"pageSize": 10,
		"totalPage": 1,
		"totalRow": 1
	}
}

失败返回参数

参数 示例值 参数描述
code 1000 状态码
msg ··· 错误原因描述

失败示例数据

{
	"code": 1000,
	"msg": {
		"user_not_login": "用户未登录"
	},
	"data": {
		"account_type": 0
	}
}

标签:git,false,coding,28,2020,test,xutongxin,data
From: https://www.cnblogs.com/xutongxin/p/17709525.html

相关文章

  • 2020-1-28-coding状态查询
    layout:posttitle:coding团队信息查询categories:coding-posttag:codingapicoding团队信息查询接口URLhttps://<team-name>.coding.net/api/team/<user-name>/get请求方式GET请求header参数:cookie:eid成功返回参数参数示例值参数描述code0状态码......
  • 2020-1-28-coding获取某个项目中的任务
    layout:posttitle:coding获取某个项目中的任务categories:coding-postbackground_music:'<iframeframeborder="no"border="0"marginwidth="0"marginheight="0"width=100%height=100src="//music.163.com/outchain/p......
  • 《Java编程思想第四版》学习笔记28--关于StreamTokenizer
    //:SortedWordCount.java//Countswordsinafile,outputs//resultsinsortedform.importjava.io.*;importjava.util.*;importc08.*;//ContainsStrSortVectorclassCounter{privateinti=1;intread(){returni;}voidincrement(){i++;}}pu......
  • P6631 [ZJOI2020] 序列
    可以将问题用形象地方式来表述。给定一排点,第\(i\)个点有它需要的覆盖次数\(a_i\)。有两种线段,一种能覆盖连续的一些点,称其为连续线段;另一种能覆盖相邻间隔为\(1\)的一些点,称其为间隔线段。现在要用尽可能少的线段覆盖所有点\(i\)恰好\(a_i\)次。发现如果没有间隔线段就......
  • P3287 [SCOI2014] 方伯伯的玉米田
    首先每次选择的区间结尾都可以换成\(n\),仍然保持单调不降,我们就按这个策略拔高玉米。令\(f_{i,j}\)表示\(1\simi\)这段前缀进行了\(j\)次操作,第\(i\)株玉米不被拔掉,所能剩下最多的玉米数量:\[f_{i,j}=\max\{f_{p,q}|p<i,q<j,a_p+q\leqa_i+j\}+1\]枚举\(i\),剩下两个......
  • java == 和 equals 和 128以下整数
    Integera=127;Integerb=127;System.out.println(a==b);打印值为true而Integera=128;Integerb=128;System.out.println(a==b);打印值为false 因为:在Java中,不应该以这种方式比较对象。当您像a==b那样比较它们时,您比较的是引用,而不是值,值......
  • 2020-2021 ACM-ICPC Brazil Subregional Programming Contest
    A.StickerAlbum你想要得到\(n\)张贴纸,每包礼物中等概率出现\([A,B]\)范围内数量的贴纸,求需要买多少包礼物才能至少获得\(n\)张贴纸的期望次数\(1\leqn\leq10^6,0\leqA,B\leq10^6\)题解:期望DP我们考虑从后往前进行\(dp\)设计状态为\(dp[i]\)代表手上有\(i\)张......
  • CF1828B
    PermutationSwap题面翻译给你一个长度为\(n\)的未排序的排列。找到最大的整数\(k\)满足可以通过只交换下标差为\(k\)的元素使排列被从小到大排序。题目描述Youaregivenanunsortedpermutation$p_1,p_2,\ldots,p_n$.Tosortthepermutation,youchoosea......
  • 《Java编程思想第四版》学习笔记28
    //:PrintFile.java//Shorthandclassforopeninganoutputfile//forhuman-readableoutput.packagecom.bruceeckel.tools;importjava.io.*;publicclassPrintFileextendsPrintStream{publicPrintFile(Stringfilename)throwsIOException{super(n......
  • vs 远程调试工具2019 2020 ,visual studio
    https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging?view=vs-2022#download-and-install-the-remote-tools这个是唯一的方法,如果是非最新的版本,就必须这样这是具体vs2019远程工具下载地址https://download.visualstudio.microsoft.com/download......