camparchimedes commited on
Commit
3373607
ยท
verified ยท
1 Parent(s): 6deeb03

Update api_docs.py

Browse files
Files changed (1) hide show
  1. api_docs.py +8 -10
api_docs.py CHANGED
@@ -6,16 +6,14 @@ import json
6
  api_docs = {
7
  "api_url": "https://aivisions.no/data/daysoff/api/v1/booking/",
8
  "endpoints": {
9
- "method": "GET",
10
- "description": "Retrieve booking information for a given booking ID.",
11
- "parameters": {
12
- "auth_token": {
 
13
  "type": "string",
14
- "description": "The authorization token for the API request."
15
- },
16
- "booking_id": {
17
- "type": "string",
18
- "description": "The unique identifier of the booking to retrieve."
19
  }
20
  },
21
  "headers": {
@@ -25,7 +23,7 @@ api_docs = {
25
  "api_response": {
26
  "description": "A JSON object containing booking details.",
27
  "content_type": "application/json",
28
- "fields": {
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')",
 
6
  api_docs = {
7
  "api_url": "https://aivisions.no/data/daysoff/api/v1/booking/",
8
  "endpoints": {
9
+ "/booking": {
10
+ "method": "GET",
11
+ "description": "Retrieve booking details for a given booking ID.",
12
+ "parameters": {
13
+ "booking_id": {
14
  "type": "string",
15
+ "description": "Alphanumeric identifier, (6 capital letters followed by 6 digits, e.g., DAGHNS116478) of the booking to retrieve.",
16
+ "regex_pattern": "^[A-Z]{6}\\d{6}$",
 
 
 
17
  }
18
  },
19
  "headers": {
 
23
  "api_response": {
24
  "description": "A JSON object containing booking details.",
25
  "content_type": "application/json",
26
+ "booking_info": {
27
  "booking_id": "response.get('booking_id', 'N/A')",
28
  "full_name": "response.get('full_name', 'N/A')",
29
  "amount": "response.get('amount', 'N/A')",