Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Stocks

A simple RESTful API built with Go, Gin, and Mux for managing a stock's resources.

Getting Started

Prerequisites

  • Go - Install the latest version available from the official website
  • Git - To clone the repository

Installing

  1. Clone the repository:
git clone https://github.com/daking24/Go---Stocks-API.git
cd go-postgres-yt
  1. Install the required packages: Copy code
go get -v
  1. Run the application:
go run main.go

API Endpoints

  • Endpoint: GET /api/stock Fetch all Stocks

  • Endpoint: POST /api/new-stock Create a Stock

  • Endpoint: GET /api/stock/{id} Get a Stock by ID

  • Endpoint: PUT /api/stock/{id} Update a Stock by ID

  • Endpoint: DELETE /api/delete-stock/{bookId} Delete a Stock by ID

Contributing

Feel free to submit a pull request or open an issue to contribute to the project. Make sure to include a detailed description of the changes and any relevant context.

License

This project is open source and licensed under the MIT License.

Contact

If you have any questions, feel free to reach out to the maintainer at kingdavidao11@gmail.com.

About

The "Go - Stocks API" project is a backend application in Go with PostgreSQL. It offers RESTful endpoints for CRUD operations on stock data, error handling and documentation.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages