按更新时间戳对GitLab API返回的问题进行排序
在GitLab实例上执行以下请求时,它们返回相同的输出:按更新时间戳对GitLab API返回的问题进行排序,api,gitlab,Api,Gitlab,在GitLab实例上执行以下请求时,它们返回相同的输出: curl -o updated.json https://gitlab.domain.com/api/v3/projects/37/issues?private_token=${GITLAB_TOKEN}&order_by=updated_at curl -o created.json https://gitlab.domain.com/api/v3/projects/37/issues?private_token=${GITLA
curl -o updated.json https://gitlab.domain.com/api/v3/projects/37/issues?private_token=${GITLAB_TOKEN}&order_by=updated_at
curl -o created.json https://gitlab.domain.com/api/v3/projects/37/issues?private_token=${GITLAB_TOKEN}
我希望updated.json
由问题中的updated\u at
字段排序,但是它们仍然由created\u at
排序
我错过了什么明显的东西吗?源代码中包含,因此我希望它们能够正确排序?如评论中所述,URL需要引用:
curl -o updated.json "https://gitlab.domain.com/api/v3/projects/37/issues?private_token=${GITLAB_TOKEN}&order_by=updated_at"
curl -o created.json "https://gitlab.domain.com/api/v3/projects/37/issues?private_token=${GITLAB_TOKEN}"
如评论中所述,需要引用URL:
curl -o updated.json "https://gitlab.domain.com/api/v3/projects/37/issues?private_token=${GITLAB_TOKEN}&order_by=updated_at"
curl -o created.json "https://gitlab.domain.com/api/v3/projects/37/issues?private_token=${GITLAB_TOKEN}"
您需要引用URL,否则
&
用于curl
命令的背景。您需要引用URL,否则&
用于curl
命令的背景。