This project is not covered by Drupal’s security advisory policy.

This module provides a very basic API that is really just parsing/caching JSON files in the public files directory. It can be used for testing, for proxying data, or (as the name implies) to provide a very simple API.

By default, the module provides routes for:
* A list of items - /api/simple/{DIRECTORY}
* A specific item - /api/simple/{DIRECTORY}/{ITEM_ID}

The item information is simply populated by a series of JSON files in public://{DIRECTORY}.
Each JSON file should have the name {ITEM_ID}.json.

EXAMPLE - if you copy the "data" folder in the module to your public files directory, then the routes will be:
* /api/simple/data
* /api/simple/data/macbook_air_11
* /api/simple/data/macbook_air_13

This doesn't require the database, and only really operates at very low levels. While it should do fine for alot of things, its not intended to scale too big. Consider that the "list" route provides all of the item data in a single response.

Supporting organizations: 
paid for my time to develop this

Project information

  • caution Seeking new maintainer
    The current maintainers are looking for new people to take ownership.
  • Project categories: Developer tools
  • Created by rlnorthcutt on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases