chainlit-assistant / api_docs_mck.py
camparchimedes's picture
Update api_docs_mck.py
a76c74c verified
raw
history blame
3.92 kB
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.",
"parameters": None,
"headers": {
"Content-Type": "application/json"
},
"response": {
"description": "The booking information associated with a specific booking ID.",
"content_type": "application/json",
"fields": {
"booking_id": "response.get('booking_id', 'N/A')",
"full_name": "response.get('full_name', 'N/A')",
"amount": "response.get('amount', 'N/A')",
"checkin": "response.get('checkin', 'N/A')",
"checkout": "response.get('checkout', 'N/A')",
"address": "response.get('address', 'N/A')",
"user_id": "response.get('user_id', 'N/A')"
}
}
},
"firmahytteordning": {
"method": "GET",
"url": "/firmahytteordning",
"description": "Retrieve details about Daysoff's 'Firmahytteordning' service.",
"headers": {
"Content-Type": "application/json"
},
"response": {
"description": "Information about DaysOff services.",
"content_type": "application/json",
"fields": {
"firmahytteordning": "response.get('firmahytteordning', 'N/A')",
"egne_firmahytter": "response.get('egne_firmahytter', 'N/A')",
"bli_utleier": "response.get('bli_utleier', 'N/A')",
"om_oss": "response.get('om_oss', 'N/A')"
}
}
},
"personvernspolicy": {
"method": "GET",
"url": "/personvernspolicy",
"description": "Retrieve personvernspolicy for DaysOff.",
"headers": {
"Content-Type": "application/json"
},
"response": {
"description": "DaysOff's personvernspolicy.",
"content_type": "application/json",
"fields": {
"innledning": "response.get('innledning', 'N/A')",
"hvilke_personlige_opplysninger_samler_vi_inn": "response.get('hvilke_personlige_opplysninger_samler_vi_inn', 'N/A')",
"personlig_informasjon_fra_tredjepart": "response.get('personlig_informasjon_fra_tredjepart', 'N/A')",
"hvordan_bruker_vi_dine_personlige_opplysninger": "response.get('hvordan_bruker_vi_dine_personlige_opplysninger', 'N/A')",
"med_hvem_deler_vi_dine_personlige_opplysninger": "response.get('med_hvem_deler_vi_dine_personlige_opplysninger', 'N/A')",
"adferdsmessig_annonsing": "response.get('adferdsmessig_annonsing', 'N/A')",
"spor_ikke_foresporsler": "response.get('spor_ikke_foresporsler', 'N/A')",
"dine_rettigheter": "response.get('dine_rettigheter', 'N/A')",
"hvordan_beskytter_vi_dataene_dine": "response.get('hvordan_beskytter_vi_dataene_dine', 'N/A')",
"data_brekk_prosedyrer": "response.get('data_brekk_prosedyrer', 'N/A')",
"team_tilgang": "response.get('team_tilgang', 'N/A')",
"policy_endringer": "response.get('policy_endringer', 'N/A')",
"kontaktinformasjon": "response.get('kontaktinformasjon', 'N/A')"
}
}
}
}
}
# Convert to JSON string for usage in your Python application
api_docs_str = json.dumps(api_docs, indent=2)
api_docs_str