npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

strapi-plugin-custom-api

v1.0.6

Published

Create custom API's from within the Admin dashboard of Strapi.

Downloads

386

Readme

Strapi Custom API Builder plugin

Design your custom API's (or custom reports / or custom views) directly from the Strapi CMS admin panel. Simply select the fields you need to show, enter a valid slug and let the plugin magically create the routes, controllers & services for you. Very easy to create & even easier to maintain.  

custom-api-builder-ss-3

 

⚙️ Versions

Strapi v4 - (current) - v1.x

 

Breaking changes in v1

  • Support for media & multiple media added
  • Support for multiple relationships at the same level added
  • The above features makes it incompatible with v0.x. The current version wont work with the custom API's created with v0.x.

🖐 Beta Release

We are still performing tests to make sure that the plugin is bug free. We will be adding several more features to the plugin in the recent future.

🚧 Roadmap

  • [x] Build an API Visually from the Admin UI
  • [x] Auto compose Routes, Controllers and Services
  • [ ] Complete UI tests
  • [ ] Use built in slug system to auto generate slugs and validate if they are unique
  • [ ] Add filtering capabilities
  • [ ] Add ordering/sorting capabilities
  • [ ] Add pagination capabilities
  • [ ] Robust way to handle both multi / single value
  • [x] Manage multiple relations
  • [x] Support Media & Multiple Media
  • [x] Disable if no content types
  • [ ] Improve UI for scalability
  • [ ] When we have a field in the builder and its deleted from the content-type, handle it in a graceful way
  • [ ] When we have a new field, show it in the builder while editing
  • [ ] Provide a way to visualise the constructed query

⏳ Installation

Install Strapi with this Quickstart command to create a Strapi project instantly:

# with yarn
yarn create strapi-app my-project --quickstart

# with npm/npx
npx create-strapi-app my-project --quickstart

This command generates a brand new project with the default features (authentication, permissions, content management, content type builder & file upload). The Quickstart command installs Strapi using a SQLite database which is used for prototyping in development.

Add the strapi-designer plugin

yarn add strapi-plugin-custom-api@latest

# or

npm i -S strapi-plugin-custom-api@latest

Add the following config to /config/plugins.js file

module.exports = {
  "custom-api": {
    enabled: true,
  },
};

In case you don't have a plugins.js file, please create one.

After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:

yarn build && yarn develop

# or

npm run build && npm run develop

or just run Strapi in the development mode with --watch-admin option:

yarn develop --watch-admin

#or

npm run develop --watch-admin

Step by step installation of the plugin from scratch

https://www.loom.com/share/6ed4576bf2d645f5b7f45b7928c74def

The Custom API Builder plugin should appear in the Plugins section of Strapi sidebar after you run app again.

🚀 Usage

https://user-images.githubusercontent.com/34507994/172044022-7dce9138-d716-4806-a765-b446f24a94dd.mp4

As simple as that

🦸 Contributors

  • https://github.com/cjboco