从联系人视图中,用户可以创建新的联系人或向下打开现有联系人条目。
From the contact view, users can create new contacts or drill down to open an existing contact entry.
创建新的数据记录可以包括将一个联系人添加到好友列表。
Creating new data records could include adding a contact to a buddy list.
步骤1:创建新的本地联系人。
@Response.created(uri).build():构建新的 URI用于新创建的联系人(/contacts/{id})并设置响应代码(201/created)。
Response.created(uri).build(): Builds a new URI for the newly created contact as /contacts/{id} and set the response code as 201/created.
@Response.created(uri).build():构建新的 URI用于新创建的联系人(/contacts/{id})并设置响应代码(201/created)。
Response.created(uri).build(): Builds a new URI for the newly created contact as /contacts/{id} and set the response code as 201/created.
应用推荐