Spaces:
Sleeping
Sleeping
import json | |
# API Documentation | |
api_docs = { | |
"base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1", | |
"endpoints": { | |
"/booking": { | |
"method": "GET", | |
"description": "Retrieve booking information associated with a specific booking ID.", | |
"parameters": None, | |
"response": { | |
"description": "A JSON object listing information associated with a booking ID (bestillingskode).", | |
"content_type": "application/json", | |
"fields": { | |
"Bestillingskode": "response.get('Bestillingskode', 'N/A')", | |
"Navn": "response.get('Navn', 'N/A')", | |
"Beløp": "response.get('Beløp', 'N/A')", | |
"Checkin": "response.get('Checkin', 'N/A')", | |
"Checkout": "response.get('Checkout', 'N/A')", | |
"Addresse": "response.get('Addresse', 'N/A')", | |
"Bruker ID": "response.get('Bruker ID', 'N/A')", | |
"Viktig informasjon": "response.get('Viktig informasjon', 'N/A')", | |
"Message": "response.get('Message', 'N/A')", | |
}, | |
} | |
}, | |
"/firmahytteordning": { | |
"method": "GET", | |
"description": "Retrieve general information about Daysoff's services.", | |
"parameters": None, | |
"response": { | |
"description": "A JSON object containing general information about Daysoff's services. ", | |
"content_type": "application/json" | |
} | |
}, | |
"/personvernspolicy": { | |
"method": "GET", | |
"description": "Retrieve questions and answers about personvernspolicy for DaysOff.", | |
"parameters": None, | |
"response": { | |
"description": "A JSON object containing questions and answers about personvernspolicy for DaysOff. ", | |
"content_type": "application/json" | |
} | |
}, | |
"/faq_ansatte": { | |
"method": "GET", | |
"description": "Retrieve spørsmål og svar vi ofte får fra ansatte i bedrifter med DaysOff firmahytteordning.", | |
"parameters": None, | |
"response": { | |
"description": "A JSON object containing spørsmål og svar vi ofte får fra ansatte i bedrifter med DaysOff firmahytteordning.", | |
"content_type": "application/json" | |
} | |
}, | |
"/faq_utleiere": { | |
"method": "GET", | |
"description": "Retrieve spørsmål og svar vi ofte får fra utleiere om DaysOff firmahytteordning.", | |
"parameters": None, | |
"response": { | |
"description": "A JSON object containing spørsmål og svar vi ofte får fra utleiere om DaysOff firmahytteordning.", | |
"content_type": "application/json" | |
} | |
} | |
} | |
} | |
api_docs_str = json.dumps(api_docs, indent=2) | |
api_docs_str | |