daysoff_assistant / api_docs_mck.py
camparchimedes's picture
Update api_docs_mck.py
2535a3e verified
raw
history blame
2.93 kB
### api_docs_mck.py
import json
# API Documentation
api_docs = {
"base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1/",
"endpoints": {
"booking_info": {
"method": "GET",
"url": "booking",
"description": "Retrieve booking information for all or a specific booking ID.",
"headers": {
"Content-Type": "application/json"
},
"response": {
"description": "Details about a specific booking.",
"content_type": "application/json",
"template": {
"requestId": "$datatype.uuid",
"items": "$mockData",
"count": "$count",
"fields": {
"booking_id": "$mockData.booking_id",
"full_name": "$mockData.full_name",
"amount": "$mockData.amount",
"checkin": "$mockData.checkin",
"checkout": "$mockData.checkout",
"address": "$mockData.address",
"user_id": "$mockData.user_id"
}
}
}
},
"firmahytteordning": {
"method": "GET",
"url": "firmahytteordning",
"description": "Retrieve details about the 'Firmahytteordning' service.",
"headers": {
"Content-Type": "application/json"
},
"response": {
"description": "Information about DaysOff's Firmahytteordning.",
"content_type": "application/json",
"template": {
"requestId": "$datatype.uuid",
"items": "$mockData",
"count": "$count",
"fields": {
"title": "$mockData.title",
"content": "$mockData.content"
}
}
}
},
"privacy_policy": {
"method": "GET",
"url": "privacy-policy",
"description": "Retrieve the privacy policy for DaysOff.",
"headers": {
"Content-Type": "application/json"
},
"response": {
"description": "DaysOff's privacy policy.",
"content_type": "application/json",
"template": {
"requestId": "$datatype.uuid",
"items": "$mockData",
"count": "$count",
"fields": {
"title": "$mockData.title",
"content": "$mockData.content"
}
}
}
}
}
}
# Convert to JSON string for usage in your Python application
api_docs_str = json.dumps(api_docs, indent=2)
api_docs_str