Rust API client for p7m-phone

API for managing phone services

This is the API of the service at P7M that manages phone services.

For all current endpoints, 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.

Attention: this API will probably still change a lot in the future, it's not at all stable yet

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.

Installation

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

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

Documentation for API Endpoints

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

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- BlockApi | blockget | GET /block | *BlockApi* | blockiddelete | DELETE /block/{id} | *BlockApi* | blockidget | GET /block/{id} | *BlockApi* | blockidput | PUT /block/{id} | *BlockApi* | blockpost | POST /block | CallApi | callalarmallofiddelete | DELETE /call/alarm/all-of/{id} | *CallApi* | callalarmget | GET /call/alarm | *CallApi* | callalarmiddelete | DELETE /call/alarm/{id} | CallApi | callalarmidget | GET /call/alarm/{id} | *CallApi* | callalarmidput | PUT /call/alarm/{id} | CallApi | callalarmpost | POST /call/alarm | CallApi | callcodepost | POST /call/code | InternalApi | blockcheckpendingget | GET /block/checkpending | QueueApi | queueannounceget | GET /queue/announce | QueueApi | queueget | GET /queue | *StatusApi* | statusqueue_get | GET /status/{queue} |

Documentation For Models

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

cargo doc --open

Author