BeApi(tm) Api Framework ( https://www.beapi.io/ )
Documentation/Installation - https://www.beapi.io/documentation
Forums - http://beapi.freeforums.net/
Backend Implementation - https://github.com/orubel/beapi_backend
Frontend Implementation - https://github.com/orubel/beapi_frontend
Old Documentation - http://orubel.github.io/Beapi-API-Framework/
The BeAPI Framework is a full featured api automation framework providing a FULL API automation with an AVERAGE response time per call of 0.27 milliseconds per request (Google requires their calls to be UNDER 200 ms).
Some features include:
-
Automated Batching: all endpoints are batchable by default with AUTH ROLES assignable to restrict access. Batching can also be TOGGLED to turn this feature ON/OFF per endpoint.
-
Built-in CORS: Cross Origin Request handling secures all endpoints from domains that you don't want.
-
JWT Tokens: JWT Token handling for Javascript frontends to allow or better abstraction of the VIEW layer
-
Web Hooks: Enables secured Web Hooks for any endpoint so your developers/users can get push notification on updates.
-
Architectural Web Hooks: Notifys Services and synchronizes data for all your servers on the backend automatically
-
Throttling & Rate/Data Limits: Data Limits/Rate limits and Throttling for all API's through easy to configure options
-
Autogenerated APIDocs: Unlike Swagger/OpenApi which shows the ApiDocs regardless of ROLE, APIDocs are autogenerated based on your ROLE thus showing only the endpoints that you have access to.
-
Shared I/O state: Also unlike Swagger/OpenApi, the data associated with functionality for REQUEST/RESPONSE does not exist in TWO PLACES and thus can be synchronized making it moire secure, stable, faster and flexible. You can make changes to your apis, security and definitions on the fly all without taking your servers down.
-
API Chaining(tm): rather than using HATEOASto make a request, get a link, make a request, get a link, make a request, etc... api chaining allows for creation of an 'api monad' wherein the output from a related set of apis can be chained allowing the output from one api to be accepted as the input to the next and so on and be passed with ONE REQUEST AND ONE RESPONSE.
-
Localized API Cache: returned resources are cached,stored and updated with requesting ROLE/AUTH. Domains extend a base class that auto update this cache upon create/update/delete. This speeds up your api REQUEST/RESPONSE x10
-
Built-In Profiler: Profile your API's and have them deliver a metrics report of time it takes for every class/method to deliver so you can optimize queries, methods services
Q: How hard is this to implement?
A: BeApi is 'Plug-N-Play'. Merely install the plugin and it takes care of the 'REST'. Implementing in your project is as simple as a one line command:
grails create-app <name of your app> --profile org.grails.profiles:beapi:1.0.0
Q: Why am I getting the error "DisconnectableInputStream source reader" when I build the example project?
A: This is a known Gradle issue that does not affect the project and is nothing to worry about. The following error:
Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.IOException: Resource temporarily unavailable
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:43)
at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:125)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Resource temporarily unavailable
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:96)
... 1 more
... will be see on every build and is caused by a known Gradle bug. This is fixed in later versions of Gradle but not in the version built into Grails. It does not affect the build and is nothing to be concerned with.
Q: How do I implement the listener for IO state webhook on my proxy/Message queue?
A: It merely requires an endpoint to send the data to. As a side project, I may actually supply a simple daemon in the future with ehCache to do this for people.