module
0.0.0-20240501085626-80079ec0debf
Repository: https://github.com/elaman122/go-project.git
Documentation: pkg.go.dev
# README
Currency Exchange Project
Overview
This project is a RESTful API for managing currency information.
Endpoints
POST /api/v1/menus
: Create a new currency.GET /api/v1/menus/:id
: Get currency information by identifier.PUT /api/v1/menus/:id
: Update currency information by identifier.DELETE /api/v1/menus/:id
: Delete currency by identifier.
Database Structure
The database structure is represented as follows:
Table currency
id
: unique currency identifier (integer).code
: currency code (string).rate
: exchange rate (decimal number).timestamp
: timestamp (timestamp).
Usage
To use this API, follow these steps:
- Install all necessary dependencies using go mod tidy.
- Run the application using go run .
- Use the corresponding HTTP requests to interact with the API.
Technologies Used
- Go: programming language.
- Gin: web framework for building web applications.
- PostgreSQL: relational database management system.
Author
- name :
Daniar Elaman
- ID :
22B031171