Skip to content

Comments

feat: add time zone query handling#14

Merged
Alonza0314 merged 2 commits intoAlonza0314:stu/114from
carlhus:feat/timezone-api
Oct 10, 2025
Merged

feat: add time zone query handling#14
Alonza0314 merged 2 commits intoAlonza0314:stu/114from
carlhus:feat/timezone-api

Conversation

@carlhus
Copy link

@carlhus carlhus commented Oct 8, 2025

Description

This pull request introduces a Time Zone API in the nf-example project, supporting the following operations:

  • Query the time zone of a city via GET /timezone/city/:City
    > curl -X GET http://127.0.0.163:8000/timezone/city/Taipei -w "\n"

  • Add a new city and its time zone via POST /timezone/city with JSON payload
    > curl -X POST http://127.0.0.163:8000/timezone/city -d '{"City": "Chicago", "TimeZone": "UTC-5"}' -w "\n"

  • Reset an existing city’s time zone via POST /timezone/city/:City with JSON payload
    > curl -X POST http://127.0.0.163:8000/timezone/city/Chicago -d '{"TimeZone": "UTC-6"}' -w "\n"

  • Delete a city’s time zone entry via DELETE /timezone/city/:City
    > curl -X DELETE http://127.0.0.163:8000/timezone/city/Chicago -w "\n"

@Alonza0314 Alonza0314 merged commit ef89714 into Alonza0314:stu/114 Oct 10, 2025
3 checks passed
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.

2 participants