module
0.0.0-20240330205710-6492ada7b662
Repository: https://github.com/ajaax2/feature-toggle-api.git
Documentation: pkg.go.dev
# README
feature-toggle-api
Description
This is a RESTful API for managing feature toggles in an application.
Installation
- Clone the repository:
git clone https://github.com/your-username/feature-toggle-api.git
- Navigate to the project directory:
cd feature-toggle-api
- Install the dependencies:
go mod tidy
Usage
- Start the server:
go run main.go
- Access the API at:
http://localhost:3000
API Endpoints
GET /feature-toggles
: Get all feature togglesGET /feature-toggles/:id
: Get a specific feature toggle by IDPOST /feature-toggles
: Create a new feature togglePUT /feature-toggles/:id
: Update an existing feature toggleDELETE /feature-toggles/:id
: Delete a feature toggle
Contributing
- Fork the repository
- Create a new branch:
git checkout -b feature/my-new-feature
- Make your changes and commit them:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Submit a pull request
License
This project is licensed under the MIT License. See the LICENSE file for more details.