cleanup
This commit is contained in:
55
bitbylaw/steps/advoware_proxy/advoware_api_proxy_put_step.md
Normal file
55
bitbylaw/steps/advoware_proxy/advoware_api_proxy_put_step.md
Normal file
@@ -0,0 +1,55 @@
|
||||
---
|
||||
type: step
|
||||
category: api
|
||||
name: Advoware Proxy PUT
|
||||
version: 1.0.0
|
||||
status: active
|
||||
tags: [advoware, proxy, api, rest, update]
|
||||
dependencies:
|
||||
- services/advoware.py
|
||||
emits: []
|
||||
---
|
||||
|
||||
# Advoware Proxy PUT Step
|
||||
|
||||
## Zweck
|
||||
Universeller REST-API-Proxy für PUT-Requests an die Advoware API zum Aktualisieren bestehender Ressourcen.
|
||||
|
||||
## Input
|
||||
```bash
|
||||
PUT /advoware/proxy?endpoint=appointments/12345
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"text": "Updated Meeting Title"
|
||||
}
|
||||
```
|
||||
|
||||
## Output
|
||||
```json
|
||||
{
|
||||
"status": 200,
|
||||
"body": {
|
||||
"result": {
|
||||
"id": "12345",
|
||||
"text": "Updated Meeting Title",
|
||||
...
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Key Differences
|
||||
- **Method**: PUT
|
||||
- **Endpoint**: Typischerweise mit ID (`resource/123`)
|
||||
- **Body**: Partial oder Full Update-Payload
|
||||
- **Side-Effect**: Modifiziert bestehende Ressource
|
||||
|
||||
## Testing
|
||||
```bash
|
||||
curl -X PUT "http://localhost:3000/advoware/proxy?endpoint=appointments/12345" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"text": "Updated Title"}'
|
||||
```
|
||||
|
||||
Siehe [advoware_api_proxy_get_step.md](advoware_api_proxy_get_step.md) für vollständige Details.
|
||||
Reference in New Issue
Block a user