Spaces:
Sleeping
Sleeping
File size: 2,933 Bytes
daf2ab5 a6e4abe 555d347 a6e4abe daf2ab5 a6e4abe daf2ab5 a6e4abe daf2ab5 a6e4abe daf2ab5 a6e4abe 555d347 9bbdce4 daf2ab5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
### 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
|