4 releases
0.3.5 | Dec 11, 2023 |
---|---|
0.3.4 | Dec 11, 2023 |
0.3.3 | Aug 10, 2022 |
0.3.2 | Jul 31, 2022 |
#640 in Web programming
43 downloads per month
89KB
1.5K
SLoC
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.
- API version: 0.3.5
- Package version: 0.3.5
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
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 |
---|---|---|---|
AudioSnippetApi | audio_snippet_get | GET /audio/snippet | |
AudioSnippetApi | audio_snippet_post | POST /audio/snippet | |
BlockApi | block_get | GET /block | |
BlockApi | block_id_delete | DELETE /block/{id} | |
BlockApi | block_id_get | GET /block/{id} | |
BlockApi | block_id_put | PUT /block/{id} | |
BlockApi | block_post | POST /block | |
CallApi | call_alarm_all_of_id_delete | DELETE /call/alarm/all-of/{id} | |
CallApi | call_alarm_by_callee_e164_get | GET /call/alarm/by-callee/{e164} | |
CallApi | call_alarm_get | GET /call/alarm | |
CallApi | call_alarm_id_delete | DELETE /call/alarm/{id} | |
CallApi | call_alarm_id_get | GET /call/alarm/{id} | |
CallApi | call_alarm_id_put | PUT /call/alarm/{id} | |
CallApi | call_alarm_post | POST /call/alarm | |
CallApi | call_code_post | POST /call/code | |
InternalApi | block_check_pending_get | GET /block/check_pending | |
QueueApi | queue_announce_get | GET /queue/announce | |
QueueApi | queue_get | GET /queue | |
StatusApi | status_queue_get | GET /status/{queue} |
Documentation For Models
- AlarmCall
- AlarmCallData
- AlarmCallUpdate
- AnnounceSwitchtime
- AudioSnippet
- AudioSnippetData
- Block
- CodeCallRequest
- CodeCallResult
- NewAlarmCall
- NewAudioSnippet
- NewBlock
- Queue
- QueueCall
- Trigger
- TriggerResult
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Dependencies
~4–18MB
~258K SLoC