Skip to content

Migrate tutorial from swapi.info/swapi.dev to swapi.build#180

Open
mvanhorn wants to merge 1 commit into
redhat-developer-demos:masterfrom
mvanhorn:migrate-swapi-build
Open

Migrate tutorial from swapi.info/swapi.dev to swapi.build#180
mvanhorn wants to merge 1 commit into
redhat-developer-demos:masterfrom
mvanhorn:migrate-swapi-build

Conversation

@mvanhorn
Copy link
Copy Markdown

Closes #179.

Summary

Migrates every Star Wars API reference in the tutorial (docs + tutorial_app) from swapi.info / swapi.dev to the new https://swapi.build/api service that the issue points to.

Changes

File What changed
documentation/modules/ROOT/pages/08_rest-client.adoc All https://swapi.info/... URLs (example JSON, prose, application.properties snippet) now use https://swapi.build/.... The "Create Swapi POJO" paragraph's http://swapi.dev reference also switched to https://swapi.build.
documentation/modules/ROOT/pages/09_fault-tolerance.adoc "Change the https://swapi.dev url... to https://swapii.dev" is now "https://swapi.build... to https://swapii.build". The expected UnknownHostException output was updated to match.
documentation/modules/ROOT/pages/10_health.adoc https://swapi.dev in prose and https://swapi.info/api/films in the two expected health-endpoint JSON responses are now swapi.build. See note below on status code.
apps/tutorial_app/src/main/resources/application.properties https://swapii.dev -> https://swapii.build so the fault-tolerance chapter's intentionally-broken URL stays consistent with the new base domain.

Notes for reviewers

  • swapi.build currently responds 202 Accepted to GET /api/films/ instead of 200 OK. The readiness probe in 10_health.adoc hard-codes .statusCode(200), so the tutorial's health check would always fail against the new backend without this change. I updated that one value to 202. If the swapi.build team plans to move to 200, this line should be updated back at that time.
  • I verified each of the six URIs touched resolves against swapi.build (HTTP/2 202 with a JSON body matching the shape shown in the tutorial).
  • The swapi.build JSON preserves the swapi.info-style endpoints (no trailing slash, no endpoint renames), so no payload/POJO changes were needed.

🤖 Generated with Claude Code

Closes redhat-developer-demos#179.

- Update all swapi.info and swapi.dev API URLs in the tutorial docs and
  tutorial_app to point at https://swapi.build/api.
- Update the fault-tolerance chapter's intentionally-broken URL from
  swapii.dev to swapii.build so the example stays consistent with the
  new base domain.
- Update the readiness probe's expected status code from 200 to 202;
  swapi.build currently responds 202 Accepted to GET /api/films/, so
  the tutorial's readiness check would fail against the new backend
  without this change.

Signed-off-by: Matt Van Horn <mvanhorn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to new swapi.build API

1 participant