Coder Social home page Coder Social logo

62sailfish's Introduction

Sailfish REST API

Sailfish is a RESTful API written in Golang designed to manage notification by 62teknologi.com.

Table of Contents

  1. Introduction
  2. Catalog Description
  3. Features
  4. Installation
  5. API Endpoints
  6. Usage Examples
  7. Contributing
  8. License

Introduction

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.

Sailfish notification behaviors

  • can be created
  • can be retrieved
  • can be updated
  • can be deleted
  • can be pushed

Features

  • 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

Installation

To install and run Sailfish REST API on your local machine, follow these steps:

  1. Clone the repository:

    git clone https://gitlab.62teknologi.com/62teknologi/sailfish-be-golang.git

  2. Change directory to the cloned repository:

    cd sailfish-be-golang

  3. Clone sailfish submodule:

    git submodule update --init

  4. Setup config with your own credentials:

    cp app.env.example app.env

  5. Build the application:

    go build

  6. 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.

API Endpoints

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)

Usage Examples (WIP)

Here are some examples of how to interact with the Sailfish REST API using curl:

  1. Get a list of all notifications:
  2. Get a specific notification by ID:

Contributing

If you'd like to contribute to the development of the Sailfish REST API, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your feature or bugfix
  3. Commit your changes to the branch
  4. Create a pull request, describing the changes you've made

We appreciate your contributions and will review your pull request as soon as possible.

License

This project is licensed under the MIT License. For more information, please see the LICENSE file.

62sailfish's People

Contributors

yanralapdy avatar dimasbagussusilo avatar yobisetiawan avatar fajar7xx avatar

Watchers

 avatar

Forkers

fajar7xx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.