The API is documented using Swagger. You can access the API documentation by starting the server and visiting http://localhost:8888/swagger/index.html in your web browser.
Live Deployment: MyGarm API - Final Project 2
- Efendi
- Rizal
- Novita
- Moh. Ihsan
- Create a new user.
- Get all users.
- Get user details by ID.
- Update user data by ID.
- Delete a user by ID.
- Upload a photo and add comments.
- Get all photos.
- Get photo details by ID.
- Update photo data by ID.
- Delete a photo by ID.
Golang: The primary programming language for developing the API.Gin Gonic: A web framework for creating RESTful APIs.Gorm: An Object-Relational Mapping (ORM) library for Golang.JSON: Data format for communication.Mutex: To handle concurrent access to data.
To get started with the MyGarm API, follow these steps:
- Clone this repository to your local machine.
- Run the command "go get" to install any required dependencies.
- Run the command "go run main.go" to start the server.
- Use Postman or similar applications to test the API by accessing the appropriate URLs for the desired endpoints.
- This project is part of a collaborative effort by Group 2 as a Final Project 2 for Hacktiv8.