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