Coder Social home page Coder Social logo

flight-search-aggregator's Introduction

flight-search-aggregator

проект состоит из 3 частей 2 сервиса по авиабилетам

1 один сервис агрегатор

FlyZen

запуск dotnet run -lp https

получение тикетов

curl --location 'https://localhost:7191/tickets?from=2024-03-01&to=2024-03-03' \
--header 'accept: */*' \
--header 'apiToken: g#$%Hw4%H;k345gjw'\''4ph'\'''

бронирование

curl --location --request POST 'https://localhost:7191/tickets/222-33-5792/order' \
--header 'accept: */*' \
--header 'apiToken: g#$%Hw4%H;k345gjw'\''4ph'\'''

ZotFlightService

запуск dotnet run -lp https

получение тикетов

curl --location 'https://localhost:7211/flights?from=2024-03-01&to=2024-03-03' \
--header 'accept: */*' \
--header 'apiToken: g#$%Hw4%H;k345gjw'\''4ph'\'''

бронирование

curl --location --request POST 'https://localhost:7211/flight/412-67-9971/order' \
--header 'accept: */*' \
--header 'apiToken: g#$%Hw4%H;k345gjw'\''4ph'\'''

Aggregator

в данном сервис есть два хосте сервиса для получение новых билетов из двух выше описанных серверов

база данных использова sqllite

фронт на блейзоре первая страница с филтрами и сортировкой билетов а второя логи

города

curl -X 'GET' \
  'https://localhost:7154/api/Ticket/cities?cityTypeEnum=1' \
  -H 'accept: text/plain'

получаем список городов

рейсы

curl -X 'GET' \
  'https://localhost:7154/api/Ticket/flights' \
  -H 'accept: text/plain'

получаем список рейсов

Бронирование

curl -X 'POST' \
  'https://localhost:7154/api/Ticket/take-order' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "flightId": 0
}'

данный метод бронирует с отправкой на другие сервисы

flight-search-aggregator's People

Watchers

Nurbek Akhmedov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.