![Logo](/0x4cker/push-it-api/raw/master/readme/images/logo.png)
A robust and secure API built with Kotlin and Spring Boot.
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
Push It API is a robust and secure API built with Kotlin and Spring Boot. It provides a solid foundation for building complex web applications.
To get a local copy up and running follow these simple example steps.
- Docker
- Make (optional but recommended)
- Clone the repo
git clone https://github.com/n01rdev/push-it-api/
- Build the Docker image
make docker-up
The Push It API provides a robust and secure backend for web applications. Here are some examples of how you can use it:
To register a new user, send a POST
request to /api/v1/security/register
with the user's email and password in the request body:
curl -X POST -H "Content-Type: application/json" -d '{"email": "user@example.com", "password": "password"}' http://localhost:8080/api/v1/security/register
The API will return a JWE token which can be used for user authentication in subsequent requests.
To authenticate a user, include the JWE token in the Authorization header of your requests:
curl -H "Authorization: Bearer <JWE_TOKEN>" http://localhost:8080/api/v1/protected-endpoint
Replace <JWE_TOKEN> with the token you received during user registration.
The API uses standard HTTP status codes to indicate the success or failure of a request. In case of an error, the response will include a message providing more details about the error.
For example, if you try to register a user with an email that is already in use, the API will return a 409 Conflict status code and a message indicating that the email is already in use.
For more examples, please refer to the Documentation
- Feature 1
- Feature 2
- Feature 3
- Nested Feature
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Álvaro Diago - alvarodiagoaguilar@gmail.com
Project Link: Push-It