{"repo":"long2ice/fibers","free":true,"listed":false,"github":"https://github.com/long2ice/fibers","clone":"git clone https://github.com/long2ice/fibers.git","description":"Fiber + Swagger = Fibers, a web framework dedicated to providing a FastAPI-like development experience","language":"Go","stars":30,"topics":["fiber","swagger","fastapi","redoc","openapi","swagger-ui","golang"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Fiber + Swagger = Fibers Introduction Fibers is a web framework based on Fiber and Swagger inspired by FastAPI, which wraps Fiber and provides built-in swagger api docs and request model validation. Why I build this project? Previous I have used FastAPI, which gives me a great experience in api docs generation and api writing, because nobody like writing api docs. Now I use Fiber but I can't found anything like that, I found swag but which write docs with comment is so stupid. So there is Fibers . Requirements - Go = 1.18, because of generic usage. Installation Online Demo You can see online demo at or . And you can see the code in examples. Usage Build Swagger Firstly, build a swagger object with basic information. Write API Then make func which is type F func(c fiber.Ctx, req T) error . All supported tags name description --------------- ----------------------------------------------------------------- query binding query param cookie binding cookie param form binding form param json binding json body uri binding path param header binding header param validate validator support description swagger docs param description example swagger docs param example default swagger docs param default value embed embed struct params or body Note that the attributes in TestQuery ? Fibers will validate request and inject it automatically, then you can use it in handler easily. Write Router Then write router with some docs configuration and api. Security If you want to project your api wit","default_branch":null,"files":null,"tree":[],"storefront":"/r/long2ice","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/long2ice/fibers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}