Files
freeCodeCamp/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-projects/issue-tracker.md

72 lines
2.5 KiB
Markdown
Raw Normal View History

---
id: 587d8249367417b2b2512c42
title: 问题跟踪器
challengeType: 4
videoUrl: ''
dashedName: issue-tracker
---
# --description--
构建一个功能类似于此的完整堆栈JavaScript应用程序 [https](https://protective-garage.glitch.me/) [//protective-garage.glitch.me/](https://protective-garage.glitch.me/) 。在这个项目上工作将涉及您在我们的入门项目上在Glitch上编写代码。完成此项目后您可以将公共故障网址到应用程序的主页复制到此屏幕进行测试您可以选择在另一个平台上编写项目但必须公开显示我们的测试。使用[此链接](https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-project-issuetracker/)在Glitch上启动此项目或在GitHub上克隆[此存储库](https://github.com/freeCodeCamp/boilerplate-project-issuetracker/) 如果您使用Glitch请记住将项目链接保存到安全的地方
# --hints--
防止跨站点脚本XSS攻击。
```js
```
我可以使用包含所需issue_titleissue_textcreated_by和可选的assigned_to和status_text的表单数据POST / api / issues / {projectname}。
```js
```
保存和返回的对象将包括所有这些字段空白表示可选无输入还包括created_on日期/时间updated_on日期/时间打开布尔值true表示打开false表示关闭和\_id。
```js
```
我可以使用id和对象中的任何字段PUT / api / issues / {projectname},并使用值来对象表示对象。返回将“成功更新”或“无法更新”+ id。这应该始终更新updated_on。如果没有发送字段则返回“未发送更新字段”。
```js
```
我可以使用id DELETE / api / issues / {projectname}来完全删除问题。如果没有发送\_id则返回“id error”成功“删除”+ id失败“无法删除”+ id。
```js
```
我可以GET / api / issues / {projectname}获取该特定项目中所有问题的数组,其中包含发布时返回的每个问题的所有信息。
```js
```
我可以通过传递查询中的任何字段和值来过滤我的获取请求(即。/ api / issues / {project}open = false。我可以传递尽可能多的字段/值。
```js
```
所有11项功能测试都已完成并通过。
```js
```
# --solutions--
```js
/**
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Please check our contributing guidelines to learn more.
*/
```