File size: 3,915 Bytes
daf2ab5 a6e4abe 555d347 2d2333e daf2ab5 6df6a9d a6e4abe b06e6cd f963e32 2d2333e a6e4abe 2d2333e f963e32 2d2333e 2d8ef09 a6e4abe daf2ab5 6df6a9d a6e4abe b06e6cd f963e32 a6e4abe a76c74c a6e4abe f963e32 a76c74c a6e4abe a76c74c daf2ab5 b06e6cd a6e4abe b06e6cd f963e32 a6e4abe f963e32 a6e4abe f963e32 a76c74c a6e4abe 2d8ef09 daf2ab5 b06e6cd a6e4abe 555d347 a76c74c |
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 |
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
|