Git Product home page Git Product logo

booking-api's Introduction

Appointment Booking API

This is an appointment booking API developed in Go. It allows users to create, view, update, and delete bookings for appointments.

Endpoints


The API has the following endpoints:

  • GET /bookings: Retrieves a list of all bookings.
  • POST /bookings: Creates a new booking.
  • DELETE /bookings/{id}: Deletes a booking with the specified ID.
  • PUT /bookings/{id}: Updates a booking with the specified ID.

Usage


To use the API, send HTTP requests to the appropriate endpoint with the required parameters and data. For example, to create a new booking, send a POST request to the /bookings endpoint with the booking data in the request body.

Example


Here's an example of how you can use the API to create a new booking:

curl -X POST -H "Content-Type: application/json" -d '{"name": "John Doe", "booking_date": "2023-08-01", "booking_time": "14:00", "phone_number": "+1-555-123-4567", "email": "[email protected]", "price": 100}' http://localhost:8080/bookings

Copy

This will send a POST request to the /bookings endpoint with the specified booking data in the request body. The API will create a new booking with this data and return a response indicating that the operation was successful.

I hope this helps you get started with using the appointment booking API! 😊

booking-api's People

Contributors

hcastro1515 avatar

Watchers

 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.