Document how to use TestRestTemplate with spring-data-rest
メンテナーはふだん 24 日以内に返信
@odrotbohm がすでに取り組んでいます。
2024年2月20日 から。
評価
この issue はまだ評価されていません。
説明
TestRestTemplate is relatively popular in the spring world but it's not obvious how to use it with the spring-data-rest CrudRepository generated endpoints. spring-data-rest wraps every response in an object I didn't create. It's not obvious how to use TestRestTemplate with this object unless I return simple response classes like String or Map<?, ?>.
-
- If
TestRestTemplatecan be used with spring-data-rest, please provide examples of using it with response bodies more complex thanStringorMap<?, ?>. e.g., aPersonclass.
- If
-
- Please also include a
postForEntityand/orputForEntity(putForEntitydoesn't exist) example, because I see a lot of people struggling to make requests that send a complex class, e.g.,Person, in the request body.
- Please also include a
-
- If
TestRestTemplateis the wrong tool for the job, please recommend the right tool or a better tool. This might already be documented, but I've been unable to find it.
- If
Thanks,
Dan
- 主要言語
- Java
- スター
- 957
- フォーク
- 568
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
spring-projects/spring-data-rest のほかの issue
-
type: task
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
spring-projects/spring-data-rest#2613 ·
メンテナーはふだん 24 日以内に返信
-
Merge patch drops linkable associations of existing array elements since 4.3対応中かも @odrotbohm が 11 日前に担当しました。 オープンstatus: feedback-provided status: waiting-for-triage
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
spring-projects/spring-data-rest#2596 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 24 日以内に返信
-
type: task
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
spring-projects/spring-data-rest#2591 ·
メンテナーはふだん 24 日以内に返信
-
type: task
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
spring-projects/spring-data-rest#2590 ·
メンテナーはふだん 24 日以内に返信
-
Querydsl filtering silently ignores nested property paths since GH-2572対応中かも @odrotbohm が 11 日前に担当しました。 オープンtype: regression
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
spring-projects/spring-data-rest#2579 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 24 日以内に返信
spring-projects/spring-data-rest の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
floci-io/floci#5369 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sqlcipher/sqlcipher-android#97 · コメント 1 件 ·
-
area-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug IIIF interoperability
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100