Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API fixes for fetching list of stations and updating station schedule #44

Merged
merged 6 commits into from
Dec 7, 2023

Conversation

masayag
Copy link
Contributor

@masayag masayag commented Nov 19, 2023

Also included in this PR (which should have been broken into several):

  1. Adding Scheduling URL for each schedule point for a quick reservation process.
[
...,
  {
    "address": "גבעת אלה",
    "close_time": "21:30",
    "date": "2024-06-18",
    "name": "מבואה אולם ספורט",
    "open_time": "17:30",
    "scheduling_url": "https://bd.mda.org.il/#/pub-schedule/2AB9CA1F-B64A-4B71-9464-AB9574190DC4",
    "station_id": 54
  }
]

@masayag
Copy link
Contributor Author

masayag commented Nov 19, 2023

@borod108
Something is incorrect somewhere with the update:

→ curl -k -X PUT https://localhost:8443/stations/45  -H 'accept: application/json'   -H 'Content-Type: application/json' -d '{
  "isOpen": true
}'
ERROR: insert or update on table "station_statuses" violates foreign key constraint "fk_station_schedules_station_status" (SQLSTATE 23503)

@masayag masayag added the WIP Work in progress label Nov 19, 2023
@masayag masayag force-pushed the updates branch 2 times, most recently from 7284664 to f72da42 Compare November 25, 2023 17:31
@masayag masayag removed the WIP Work in progress label Nov 25, 2023
@masayag masayag merged commit 0362d5b into main Dec 7, 2023
2 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