github.com/soulteary/pocket-bookcase@v0.0.0-20240428065142-0b5a9a0fc98a/docs/APIv1.md (about)

     1  # API v1
     2  
     3  > ℹ️ **This is the documentation for the new API. This API is still in development and though the finished endpoints should not change please consider that breaking changes may occur once its properly released. If you are looking for the current API, please [see here](./API.md).**
     4  
     5  The new API is an ongoing effort to migrate the current API to a more modern and standard API.
     6  
     7  The main goals of this new API are:
     8  - Ease of development
     9  - Use of a [modern framework](https://gin-gonic.com)
    10  - Use of a [standard API specification](https://swagger.io/specification/)
    11  - Self-documented API using [Swag](https://github.com/swaggo/swag)
    12  - Improved authentication and sessions using [JWT](https://jwt.io)
    13  - Deduplicate code between the webserver and the API by refactoring the logic into domains
    14  - Improve testability by using interfaces and dependency injection
    15  
    16  The current status of this new API can be checked [here](https://github.com/soulteary/pocket-bookcase/issues/640).
    17  
    18  Since the API is self-docummented, you can check the API documentation by [running the server locally](./Contribute.md#running-the-server-locally) and visiting the [`/swagger/index.html` endpoint](http://localhost:8080/swagger/index.html).