{"id":15586277,"url":"https://github.com/brandaoplaster/flight_reservations","last_synced_at":"2025-03-29T09:16:05.748Z","repository":{"id":52464709,"uuid":"360032341","full_name":"brandaoplaster/flight_reservations","owner":"brandaoplaster","description":"Application for managing flight reservations :flight_departure:","archived":false,"fork":false,"pushed_at":"2022-02-01T00:33:05.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-03T23:43:13.309Z","etag":null,"topics":["elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brandaoplaster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-21T04:31:28.000Z","updated_at":"2022-01-30T16:34:09.000Z","dependencies_parsed_at":"2022-09-10T20:41:14.506Z","dependency_job_id":null,"html_url":"https://github.com/brandaoplaster/flight_reservations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandaoplaster%2Fflight_reservations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandaoplaster%2Fflight_reservations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandaoplaster%2Fflight_reservations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandaoplaster%2Fflight_reservations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandaoplaster","download_url":"https://codeload.github.com/brandaoplaster/flight_reservations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162147,"owners_count":20733357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir"],"created_at":"2024-10-02T21:21:38.364Z","updated_at":"2025-03-29T09:16:05.731Z","avatar_url":"https://github.com/brandaoplaster.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flight Reservations\n\nApplication for managing flight reservations.\n\n# Guide\n\n - Starting the agents\n```\nFlightReservations.start_agents\n```\n\n - User parameters\n```\nparams_user = %{name: \"phoenix\", email: \"p@gmail.com\", cpf: \"00013890\"}\n```\n\n - Creating a user\n```\n{:ok, id} = FlightReservations.create_or_update_user(params_user)\n```\n\n - Booking parameters\n```\nparams_booking = %{complete_date: \"2021-04-17 14:00:00\",\n           origin_city: \"New city\",\n           destination_city: \"Last City\",\n           user_id: id}\n```\n\n - Creating a booking\n```\n{:ok, booking_id} = FlightReservations.create_or_update_booking(params_booking)\n```\n\n - Fetching a booking by id\n```\nFlightReservations.get_booking(booking_id)\n```\n\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `flight_reservations` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:flight_reservations, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/flight_reservations](https://hexdocs.pm/flight_reservations).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandaoplaster%2Fflight_reservations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandaoplaster%2Fflight_reservations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandaoplaster%2Fflight_reservations/lists"}