Sailfish is a RESTful API written in Golang designed to manage notification by 62teknologi.com.
- Introduction
- Catalog Description
- Features
- Installation
- API Endpoints
- Usage Examples
- Contributing
- License
Sailfish REST API is built with a focus on simplicity, reliability, and extensibility. With this API, users can manage notification with long pooling, pub/sub, email, and more.
- can be created
- can be retrieved
- can be updated
- can be deleted
- can be pushed
- Easy-to-use RESTful API
- Easy to setup
- Easy to Customizable
- Written in Golang for high performance and concurrency
- Robust data validation and error handling
- Well-documented API endpoints
To install and run Sailfish REST API on your local machine, follow these steps:
-
Clone the repository:
git clone https://gitlab.62teknologi.com/62teknologi/sailfish-be-golang.git
-
Change directory to the cloned repository:
cd sailfish-be-golang
-
Clone sailfish submodule:
git submodule update --init
-
Setup config with your own credentials:
cp app.env.example app.env
-
Build the application:
go build
-
Run the server:
./sailfish
The API server will start running at {{HTTP_SERVER_ADDRESS}}
based on the configuration in app.env.
You can now interact with the API using your preferred API client or through the command line with curl
.
Method | Endpoint | Description |
---|---|---|
GET | /api/v1/notifications | Retrieve a list of all notifications |
GET | /api/v1/notifications/:id | Retrieve a specific notification by ID |
POST | /api/v1/notifications | Add a new notification |
PUT | /api/v1/notifications/:id | Update information for a specific field of notification by ID |
DELETE | /api/v1/notifications/:id | Delete a specific notification by ID |
For more detailed information about each endpoint, including request and response format, please refer to the API documentation. (WIP)
Here are some examples of how to interact with the Sailfish REST API using curl
:
- Get a list of all notifications:
- Get a specific notification by ID:
If you'd like to contribute to the development of the Sailfish REST API, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bugfix
- Commit your changes to the branch
- Create a pull request, describing the changes you've made
We appreciate your contributions and will review your pull request as soon as possible.
This project is licensed under the MIT License. For more information, please see the LICENSE file.