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 booking ID.", | |
"parameters": None, | |
"response": { | |
"description": "A JSON object containing information for a a booking ID.", | |
"content_type": "application/json" | |
} | |
}, | |
"/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 | |