#bindings #api-client #tags #open-api #p7m #generator #language

p7m-appointment

Rust bindings for the appointment API of P7M

1 unstable release

0.11.0 Jul 31, 2022

#2410 in Web programming

Apache-2.0

165KB
2.5K SLoC

Rust API client for p7m-appointment

API for appointment scheduling related data

This is the API of the service at P7M that manages the scheduling and management of appointments. It is used by the booking widget (see the WidgetApi tag) with functions that are public and don't require the user to be authenticated.

For the endpoint in the other tags, the caller has to be authenticated with the system and provide a JWT token in the Authorization header of the HTTP request. If your interacting with this API using the Swagger interface, you need to set the JWT token by clicking on the Authorize button on the right side of the header. As the value don't forget that the Authorization header starts with the fixed value Bearer followed by a space followed by the actual JWT token value.

If anything is unclear or you found a bug in the documentation, please contact tech@p7m.de.

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 0.11.0
  • Package version: 0.11.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named p7m-appointment and add the following to Cargo.toml under [dependencies]:

p7m-appointment = { path = "./p7m-appointment" }

Documentation for API Endpoints

All URIs are relative to https://book.p7m.de/v1

Class Method HTTP request Description
AvailabilityApi availabilities_get GET /availabilities
AvailabilityApi availabilities_id_delete DELETE /availabilities/{id}
AvailabilityApi availabilities_id_get GET /availabilities/{id}
AvailabilityApi availabilities_id_put PUT /availabilities/{id}
AvailabilityApi availabilities_post POST /availabilities
BookingTenantApi booking_tenant_get GET /booking/tenant
BookingTenantApi booking_tenant_id_delete DELETE /booking/tenant/{id}
BookingTenantApi booking_tenant_id_get GET /booking/tenant/{id}
BookingTenantApi booking_tenant_id_put PUT /booking/tenant/{id}
BookingTenantApi booking_tenant_post POST /booking/tenant
HolidayApi holidays_get GET /holidays
ReservationApi reservations_get GET /reservations
ReservationApi reservations_id_delete DELETE /reservations/{id}
ReservationApi reservations_id_get GET /reservations/{id}
ReservationApi reservations_id_put PUT /reservations/{id}
ReservationApi reservations_id_tags_put PUT /reservations/{id}/tags
ReservationApi reservations_post POST /reservations
ServiceApi services_get GET /services
ServiceApi services_id_delete DELETE /services/{id}
ServiceApi services_id_get GET /services/{id}
ServiceApi services_id_put PUT /services/{id}
ServiceApi services_post POST /services
TagApi tags_get GET /tags
TagApi tags_id_delete DELETE /tags/{id}
TagApi tags_id_get GET /tags/{id}
TagApi tags_id_put PUT /tags/{id}
TagApi tags_post POST /tags
WidgetApiApi booking_config_tid_get GET /booking/config/{tid}
WidgetApiApi booking_reserve_post POST /booking/reserve
WidgetApiApi booking_reserve_rid_confirmation_post POST /booking/reserve/{rid}/confirmation
WidgetApiApi booking_reserve_rid_put PUT /booking/reserve/{rid}
WidgetApiApi booking_schedule_tid_sid_wid_date_get GET /booking/schedule/{tid}/{sid}/{wid}/{date}
WorkerApi workers_get GET /workers
WorkerApi workers_id_delete DELETE /workers/{id}
WorkerApi workers_id_get GET /workers/{id}
WorkerApi workers_id_put PUT /workers/{id}
WorkerApi workers_post POST /workers

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

Dependencies

~4–18MB
~257K SLoC