Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sokratisvidros/apicco
The fastest way to build JSON APIs in Koa.js
https://github.com/sokratisvidros/apicco
api api-client discovery json-api koa2 koajs
Last synced: about 2 months ago
JSON representation
The fastest way to build JSON APIs in Koa.js
- Host: GitHub
- URL: https://github.com/sokratisvidros/apicco
- Owner: SokratisVidros
- License: mit
- Created: 2018-05-10T08:15:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-19T09:39:50.000Z (about 1 year ago)
- Last Synced: 2024-11-07T09:02:37.857Z (about 2 months ago)
- Topics: api, api-client, discovery, json-api, koa2, koajs
- Language: JavaScript
- Homepage:
- Size: 1.52 MB
- Stars: 20
- Watchers: 3
- Forks: 5
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apicco
[![Build Status](https://travis-ci.org/SokratisVidros/apicco.svg?branch=master)](https://travis-ci.org/SokratisVidros/apicco)
The fastest way to build JSON APIs in [Koa.js](https://koajs.com/)
Map your API server folder structure to language‑level like method calls on the client.
```
app/
└── api/
└── user/
└── sayHello.js => POST /api/user.sayHello => api.user.sayHello()
```## Apicco middleware
Apicco middleware is a dynamic Koa router middleware that maps folder & file structure to JSON HTTP endpoints.
- [NPM package](https://www.npmjs.com/package/apicco-lib)
- [Documentation](lib/README.md)## Apicco SDK
Apicco SDK creates dynamically an Apicco API client.
- [Documentation](sdk/README.md)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
## Acknowledgments
Special thanks to
* [@jmike](https://github.com/jmike) for his work on defining the format of action files on the server side
* [@brianleroux](https://github.com/brianleroux) for inspiring us on the SDK after this
[Slack client package](https://www.npmjs.com/package/slack)
* [@stavros-wb](https://github.com/stavros-wb) for the early adoption