= How to exercise this application
NOTE: This assumes that you are on a system which includes the curl command line tool. If not, then
you may need to adjust these instructions for your setup.
After running the application, fetch a list of Spittle objects:
```
% curl localhost:8080/spittr/spittles -H "Accept: application/json" -i
```
It should return an empty list, since there have not yet been any Spittles created. So let's create one:
```
% curl localhost:8080/spittr/spittles -H "Content-Type: application/json" -i -d@testdata.json
```
(The testdata.json file is included in this distribution.)
Notice the HTTP status code of 201 and the inclusion of a Location header in the response.
Now let's fetch that single Spittle:
```
% curl localhost:8080/spittr/spittles/1
```
It should return that single Spittle object. And, of course, if you fetch the list of Spittles again, it will now be non-empty:
```
% curl localhost:8080/spittr/spittles
```
But what if you fetch a Spittle that doesn't exist?
```
% curl localhost:8080/spittr/spittles/111
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Spring in Action 第四版英文原版+源码 (835个子文件)
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
taskArtifacts.bin 19KB
fileSnapshots.bin 19KB
fileHashes.bin 18KB
outputFileStates.bin 18KB
style.css 653B
style.css 653B
style.css 653B
style.css 653B
style.css 521B
style.css 378B
style.css 378B
style.css 378B
style.css 137B
style.css 137B
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
spitter_background.gif 9KB
spitter_background.gif 9KB
spitter_background.gif 9KB
spitter_background.gif 9KB
.gitignore 111B
.gitignore 111B
.gitignore 111B
.gitignore 111B
.gitignore 111B
.gitignore 72B
.gitignore 72B
.gitignore 72B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 65B
.gitignore 64B
.gitignore 14B
.gitignore 14B
build.gradle 2KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 929B
build.gradle 924B
build.gradle 888B
build.gradle 850B
build.gradle 814B
build.gradle 792B
build.gradle 777B
build.gradle 739B
build.gradle 735B
build.gradle 609B
build.gradle 589B
共 835 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
- ye_9th2018-11-22资料不全啊。。。
- empty_geek2018-09-12只有源码,而且缺第四章源码
solarsaber
- 粉丝: 32
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功