Skip to content

mkaganm/sampleproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Fiber API Application

This is a simple web application built with Fiber, a web framework for Go. The application provides a basic RESTful API to manage users.

Prerequisites

  • Go (1.20 or later)
  • Fiber framework

API Endpoints

The following API endpoints are available:

GET /users - Retrieve all users

curl -X GET http://localhost:3000/users

POST /users - Create a new user

curl -X POST http://localhost:3000/users \
-H "Content-Type: application/json" \
-d '{"id": "3", "name": "Ali", "age": 28}'

PUT /users/:id - Update an existing user

curl -X PUT http://localhost:3000/users/3 \
-H "Content-Type: application/json" \
-d '{"name": "Ali", "age": 29}'

DELETE /users/:id - Delete a user

curl -X DELETE http://localhost:3000/users/3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published