API Docs, Drupal contributed module for your Developer Portal

On29th Jul 2023, 2023-07-29T17:15:00+05:30 Read Pause Resume Stop
API Docs, Drupal contributed module for your Developer Portal

This module will provide API Docs to your Developer Portal, It is powered by Drupal content type, custom field formatters & views.

Here's a step-by-step guide to help you to download, enable, configure and use the module for your developer portal.

Download & Enable the Module:

  • Visit the Drupal.org website and navigate to the API Docs module's page that you want to download, here’s the module link - https://www.drupal.org/project/api_docs.
  • Use the composer command to download the module

composer require 'drupal/api_docs:^2.0'

  • Log in to your Drupal site as an administrator.
  • Navigate to the "Extend" page by clicking on "Manage" and then "Extend" or by visiting /admin/modules on your site.
  • Find the module in the list of available modules and check the checkbox next to the module's name and click the "Install" button. This will enable the module.

Configure the Module:

  • After enabling the module, navigate to Add API Docs /node/add/api_docs.
    • Fill the API Doc Name, Description, Status & Open API Specification, Save the content by clicking Save.
    • Similarly, Admin will be able to create as many API Docs.
  • Navigate to API Docs via /api-docs.
    • Users can see a list of API Docs published in the site, filtered by API Doc Status, with minimal details of the API Doc.
    • Each API Doc in this list will have View Redoc UI & View Swagger UI, users will be able to navigate to respective API Doc pages.

Customizations:

  • API Docs is providing a Field Formatter, Open API Field Formatter.
    • Open API field formatter can be used in for any file field type within your site
    • Open API field formatter, can render the file in two possible ways
      • One with Redoc UI format.
      • Other with Swagger UI format.
    • Admin will have the flexibility to change this configuration of the Open API field formatter.
  • API Docs is providing two View modes, they are Redoc UI & Swagger UI, these View modes are used in the API Docs content type displays & API Docs View. If needed these can be customized at API Docs display level.

This is how the API Docs module will help you to maintain the Open API spec as API Docs in your Developer Portal.

Thanks for reading the article, for more drupal related articles read and subscribe to peoples blog articles.

251OFF
Amazon Brand - Solimo Stainless Steel Induction Bottom Kadhai (25cm), Silver

Amazon Brand - Solimo Stainless Steel Induction Bottom Kadhai (25cm), Silver

449 700
  • A safe and robust cooking utensil made from 100% food grade Stainless Steel.
  • Product Dimensions : 25CM diameter , depth : 7.8CM.
  • Serves various cooking, frying and serving options for daily kitchen needs.
  • Made with high-quality induction bottom that is also gas stove compatible.
  • Sturdy and durable with a thickness of 0.6mm and capacity of 3000ml.
  • A stable grip with double riveted ear handles. Easy to clean in a dishwasher.
Kitchen & Dining
3,000OFF
Lava Storm 5G(Gale Green,8GB RAM,128GB ROM)-Powered by MediaTek Dimensity 6080 Processor|120Hz FHD+ Display|50MP+8MP Ultrawide Camera|16MP FrontCamera|33W Fast Charging|Upto 16GB ExpandableRAM

Lava Storm 5G(Gale Green,8GB RAM,128GB ROM)-Powered by MediaTek Dimensity 6080 Processor|120Hz FHD+ Display|50MP+8MP Ultrawide Camera|16MP FrontCamera|33W Fast Charging|Upto 16GB ExpandableRAM

11,999 14,999
  • Solid Performance with 2.4 Ghz Octa Core MediaTek Dimensity 6080 Processor, Camera - 50 MP + 8 MP Ultrawide Dual Rear Camera with LED Flash and 16 MP Selfie Camera.
  • Also supports 2K Video Recording with EIS Support
  • Premium Glass Back Design
Electronics
6,610OFF
Panasonic 280 L Double Door 3 Star AI Enabled Inverter Technology Frost Free Refrigerator (NR-TH292CPKN, Diamond Black, Jumbo Fresh Vegetable Basket,2023 Model, Net Capacity 256L)

Panasonic 280 L Double Door 3 Star AI Enabled Inverter Technology Frost Free Refrigerator (NR-TH292CPKN, Diamond Black, Jumbo Fresh Vegetable Basket,2023 Model, Net Capacity 256L)

30,590 37,200
  • Double door Frost Free Refrigerator: Stylish design, efficient operations and ample space, making it a perfect addition to a new age home.
  • Keep your food fresher and healthier for longer with this modern and chic refrigerators.
  • 280L Capacity: Suitable for families with 3 to 4 members
  • Net Capacity: 256L
  • 3 Star rating - The star rating changes are as per BEE guidelines on or before 1st Jan 2023.
Refrigerators

Related Articles

2,099OFF
London Hills Women's Casual Printed Round Neck, Oversized Longline Drop Shoulder Boho Style Regular Fit T-Shirt Pack Of 2

London Hills Women's Casual Printed Round Neck, Oversized Longline Drop Shoulder Boho Style Regular Fit T-Shirt Pack Of 2

499 2,598
  • Fit Type: Oversized Fit
  • Fabric: Cotton blend
  • Sleeve Type: Half Sleeve
  • Neck Style: Round Neck
  • Pattern : Printed
Clothing & Accessories

Recent Articles

Recent Quick Read

Recent Great People

641OFF
Amazon Brand - Solimo Stainless Steel Saucepan with Glass Lid, Induction Base (16 cm, 1500 milliliters)

Amazon Brand - Solimo Stainless Steel Saucepan with Glass Lid, Induction Base (16 cm, 1500 milliliters)

459 1,100
  • Stainless steel saucepan for safe and versatile cooking
  • Made using food safe stainless steel that is sturdy and durable
  • Being scratch and chip resistant and non-corrosive makes it an ideal choice for everyday use
  • Suitable for preparing sauces, boiling water, simmering, making soups, stews, tea and more
  • Cool-touch bakelite handle prevents the transfer of heat and provides a firm grip for holding
  • Easy to stack allows minimum space utilisation in the kitchen
  • Easy to clean and maintain as food doesn’t stick to the inner or outer surface
  • Comes with a toughened glass lid that allows you to see the food as it cooks
  • Compatible with gas-stove and induction cooktop
  • Product Dimensions:- Length: 335 mm (33.5 cm), Width: 176 mm (17.6 cm), Height: 125 mm (12.5 cm), Bottom Thickness: 3.5 mm (0.35 cm), Handle Position: 85 mm (8.5 cm), Depth: 80 mm (8 cm), Weight: 795 gm (0.795 kg), Capacity: 1500ml (1.5 litres), Glass Lid diameter: 160 mm (16 cm)
Home & Kitchen
3,000OFF
Redmi 10A (Charcoal Black, 4GB RAM, 64GB Storage) | 2 Ghz Octa Core Helio G25 | 5000 mAh Battery

Redmi 10A (Charcoal Black, 4GB RAM, 64GB Storage) | 2 Ghz Octa Core Helio G25 | 5000 mAh Battery

8,999 11,999
Redmi 10A (Charcoal Black, 4GB RAM, 64GB Storage) | 2 Ghz Octa Core Helio G25 | 5000 mAh Battery | Finger Print Sensor | Upto 5GB RAM with RAM Booster
Mobiles & Accessories
5,000OFF
OnePlus Nord 3 5G (Tempest Gray, 8GB RAM, 128GB Storage)

OnePlus Nord 3 5G (Tempest Gray, 8GB RAM, 128GB Storage)

28,999 33,999
Camera: 50MP Main Camera with Sony IMX890 (OIS supported), 8MP Ultrawide Camera with Sony IMX355 (FOV: 112 degree) and 2MP Macro lens f/2.4 and a FOV 89°; 16MP Front (Selfie) Camera with EIS supported. Camera Features: Photo, Video, Night, Portrait, PANO, TIME-LAPSE, and Dual-view video. Display: 6.74 Inches; 120 Hz AMOLED FHD+ Display with Corning Gorilla Glass Victus; Resolution: 2772 X 1240 pixels; HDR 10+, sRGB, 10-bit Color Depth, PWM + DC dimming. Operating System: OxygenOS based on Android 13.1. Processor: MediaTek Dimensity 9000 Chipset (Based 4nm Architecture). Storage: 8 GB + 128 GB | 16 GB + 256 GB; LPDDR5X RAM, UFS 3.1.
Mobiles & Accessories
6,000OFF
Lava Agni 2 5G (Glass Viridian, 8GB RAM, 256GB Storage) | Indias First Dimensity 7050 Processor | 120 Hz Curved Amoled Display | 13 5G Bands | Superfast 66W Charging | Clean Android

Lava Agni 2 5G (Glass Viridian, 8GB RAM, 256GB Storage) | Indias First Dimensity 7050 Processor | 120 Hz Curved Amoled Display | 13 5G Bands | Superfast 66W Charging | Clean Android

19,999 25,999
17.22cm (6.78 inch) 120Hz FHD+ Curved Amoled Display with Widevine L1 DRM Protection - Enjoy all your Content in High Resolution. Superior performance with Octa-core 2.6GHz MediaTek Dimensity 7050 6nm processor. Superfast 66W charger (50% Charging in less than 16mins). Big 1.0µm Pixel 50MP Quad Camera with 8MP ultrawide, 2MP Macro and 2MP Depth camera along with 1.0µm 16MP selfie camera. Clean Android 13 OS (No Bloatware, No Ads). In-Display Fingerprint Unlock | Supports 13 5G bands.
Mobiles & Accessories
We Need Your Consent
By clicking “Accept Cookies”, you agree to the storing of cookies on your device to enhance your site navigation experience.
I Accept Cookies