Update api_docs_mck.py
Browse files- api_docs_mck.py +32 -64
api_docs_mck.py
CHANGED
|
@@ -4,83 +4,51 @@ import json
|
|
| 4 |
api_docs = {
|
| 5 |
"base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1",
|
| 6 |
"endpoints": {
|
| 7 |
-
"booking": {
|
| 8 |
"method": "GET",
|
| 9 |
-
"url": "/booking",
|
| 10 |
"description": "Retrieve booking information associated with a specific booking ID.",
|
| 11 |
"parameters": None,
|
| 12 |
-
"headers": {
|
| 13 |
-
"Content-Type": "application/json"
|
| 14 |
-
},
|
| 15 |
"response": {
|
| 16 |
-
"description": "
|
| 17 |
-
"content_type": "application/json"
|
| 18 |
-
"fields": {
|
| 19 |
-
"Bestillingskode": "response.get('Bestillingskode', 'N/A')",
|
| 20 |
-
"Navn": "response.get('Navn', 'N/A')",
|
| 21 |
-
"Beløp": "response.get('Beløp', 'N/A')",
|
| 22 |
-
"Checkin": "response.get('Checkin', 'N/A')",
|
| 23 |
-
"Checkout": "response.get('Checkout', 'N/A')",
|
| 24 |
-
"Addresse": "response.get('Addresse', 'N/A')",
|
| 25 |
-
"Bruker ID": "response.get('Bruker ID', 'N/A')",
|
| 26 |
-
"Viktig informasjon": "response.get('Viktig informasjon', 'N/A')",
|
| 27 |
-
"Message": "response.get('Message', 'N/A')"
|
| 28 |
-
|
| 29 |
-
#"booking_id": "response.get('booking_id', 'N/A')",
|
| 30 |
-
#"full_name": "response.get('full_name', 'N/A')",
|
| 31 |
-
#"amount": "response.get('amount', 'N/A')",
|
| 32 |
-
#"checkin": "response.get('checkin', 'N/A')",
|
| 33 |
-
#"checkout": "response.get('checkout', 'N/A')",
|
| 34 |
-
#"address": "response.get('address', 'N/A')",
|
| 35 |
-
#"user_id": "response.get('user_id', 'N/A')"
|
| 36 |
-
}
|
| 37 |
}
|
| 38 |
},
|
| 39 |
-
"firmahytteordning": {
|
| 40 |
"method": "GET",
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"headers": {
|
| 44 |
-
"Content-Type": "application/json"
|
| 45 |
-
},
|
| 46 |
"response": {
|
| 47 |
-
"description": "
|
| 48 |
-
"content_type": "application/json"
|
| 49 |
-
"fields": {
|
| 50 |
-
"firmahytteordning": "response.get('firmahytteordning', 'N/A')",
|
| 51 |
-
"egne_firmahytter": "response.get('egne_firmahytter', 'N/A')",
|
| 52 |
-
"bli_utleier": "response.get('bli_utleier', 'N/A')",
|
| 53 |
-
"om_oss": "response.get('om_oss', 'N/A')"
|
| 54 |
-
}
|
| 55 |
}
|
| 56 |
},
|
| 57 |
-
"personvernspolicy": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
"method": "GET",
|
| 59 |
-
"
|
| 60 |
-
"
|
| 61 |
-
"
|
| 62 |
-
"
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
"response": {
|
| 65 |
-
"description": "DaysOff
|
| 66 |
-
"content_type": "application/json"
|
| 67 |
-
"fields": {
|
| 68 |
-
"innledning": "response.get('innledning', 'N/A')",
|
| 69 |
-
"hvilke_personlige_opplysninger_samler_vi_inn": "response.get('hvilke_personlige_opplysninger_samler_vi_inn', 'N/A')",
|
| 70 |
-
"personlig_informasjon_fra_tredjepart": "response.get('personlig_informasjon_fra_tredjepart', 'N/A')",
|
| 71 |
-
"hvordan_bruker_vi_dine_personlige_opplysninger": "response.get('hvordan_bruker_vi_dine_personlige_opplysninger', 'N/A')",
|
| 72 |
-
"med_hvem_deler_vi_dine_personlige_opplysninger": "response.get('med_hvem_deler_vi_dine_personlige_opplysninger', 'N/A')",
|
| 73 |
-
"adferdsmessig_annonsing": "response.get('adferdsmessig_annonsing', 'N/A')",
|
| 74 |
-
"spor_ikke_foresporsler": "response.get('spor_ikke_foresporsler', 'N/A')",
|
| 75 |
-
"dine_rettigheter": "response.get('dine_rettigheter', 'N/A')",
|
| 76 |
-
"hvordan_beskytter_vi_dataene_dine": "response.get('hvordan_beskytter_vi_dataene_dine', 'N/A')",
|
| 77 |
-
"data_brekk_prosedyrer": "response.get('data_brekk_prosedyrer', 'N/A')",
|
| 78 |
-
"team_tilgang": "response.get('team_tilgang', 'N/A')",
|
| 79 |
-
"policy_endringer": "response.get('policy_endringer', 'N/A')",
|
| 80 |
-
"kontaktinformasjon": "response.get('kontaktinformasjon', 'N/A')"
|
| 81 |
-
}
|
| 82 |
}
|
| 83 |
-
}
|
| 84 |
}
|
| 85 |
}
|
| 86 |
|
|
|
|
| 4 |
api_docs = {
|
| 5 |
"base_url": "https://670dccd0073307b4ee447f2f.mockapi.io/daysoff/api/V1",
|
| 6 |
"endpoints": {
|
| 7 |
+
"/booking": {
|
| 8 |
"method": "GET",
|
|
|
|
| 9 |
"description": "Retrieve booking information associated with a specific booking ID.",
|
| 10 |
"parameters": None,
|
|
|
|
|
|
|
|
|
|
| 11 |
"response": {
|
| 12 |
+
"description": "A JSON object containing booking information associated with a specific booking ID.",
|
| 13 |
+
"content_type": "application/json"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
},
|
| 16 |
+
"/firmahytteordning": {
|
| 17 |
"method": "GET",
|
| 18 |
+
"description": "Retrieve general information about Daysoff's services.",
|
| 19 |
+
"parameters": None,
|
|
|
|
|
|
|
|
|
|
| 20 |
"response": {
|
| 21 |
+
"description": "A JSON object containing general information about Daysoff's services. ",
|
| 22 |
+
"content_type": "application/json"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
},
|
| 25 |
+
"/personvernspolicy": {
|
| 26 |
+
"method": "GET",
|
| 27 |
+
"description": "Retrieve questions and answers about personvernspolicy for DaysOff.",
|
| 28 |
+
"parameters": None,
|
| 29 |
+
"response": {
|
| 30 |
+
"description": "A JSON object containing questions and answers about personvernspolicy for DaysOff. ",
|
| 31 |
+
"content_type": "application/json"
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
"/faq_ansatte": {
|
| 35 |
"method": "GET",
|
| 36 |
+
"description": "Retrieve spørsmål og svar vi ofte får fra ansatte i bedrifter med DaysOff firmahytteordning.",
|
| 37 |
+
"parameters": None,
|
| 38 |
+
"response": {
|
| 39 |
+
"description": "A JSON object containing spørsmål og svar vi ofte får fra ansatte i bedrifter med DaysOff firmahytteordning.",
|
| 40 |
+
"content_type": "application/json"
|
| 41 |
+
}
|
| 42 |
+
},
|
| 43 |
+
"/faq_utleiere": {
|
| 44 |
+
"method": "GET",
|
| 45 |
+
"description": "Retrieve spørsmål og svar vi ofte får fra ansatte i bedrifter med DaysOff firmahytteordning.",
|
| 46 |
+
"parameters": None,
|
| 47 |
"response": {
|
| 48 |
+
"description": "A JSON object containing spørsmål og svar vi ofte får fra ansatte i bedrifter med DaysOff firmahytteordning.",
|
| 49 |
+
"content_type": "application/json"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
}
|
| 51 |
+
}
|
| 52 |
}
|
| 53 |
}
|
| 54 |
|