Skip to content

Complete Week 02 temple API Swagger documentation and route updates#17

Open
ADBranches wants to merge 1 commit into
byui-cse:w02-2-team-startfrom
ADBranches:w02-2-team-start
Open

Complete Week 02 temple API Swagger documentation and route updates#17
ADBranches wants to merge 1 commit into
byui-cse:w02-2-team-startfrom
ADBranches:w02-2-team-start

Conversation

@ADBranches

Copy link
Copy Markdown

Summary

This pull request completes the Week 02 team activity for the temple API starter project.

Changes made

  • configured MongoDB connection through .env
  • verified existing temple routes
  • added Swagger generation with swagger-autogen
  • mounted live Swagger UI at /api-docs
  • documented the existing routes:
    • GET /temples
    • GET /temples/:temple_id
    • POST /temples
  • added and documented missing routes:
    • PUT /temples/:temple_id
    • DELETE /temples/:temple_id
  • updated the temple model and controller logic to support the documented fields and CRUD flow

Testing performed

  • generated swagger.json successfully
  • verified /api-docs loads Swagger UI
  • tested:
    • GET /temples
    • GET /temples/:temple_id
    • POST /temples
    • PUT /temples/:temple_id
    • DELETE /temples/:temple_id

Notes

  • .env was kept local and not included in the repository

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.

1 participant