package
1.7.0
Repository: https://github.com/pilinux/gorest.git
Documentation: pkg.go.dev

# Functions

AccessResource - can be accessed by basic auth.
AddHobby - PUT /users/hobbies.
APIStatus - check status of the API.
CreatePost - POST /posts.
CreateUser - POST /users.
DeletePost - DELETE /posts/:id.
GetHobbies - GET /hobbies.
GetPost - GET /posts/:id.
GetPosts - GET /posts.
GetUser - GET /users/:id.
GetUsers - GET /users.
MongoCreateOne - create one document.
MongoDeleteByID - delete one document by ID.
MongoDeleteFieldByID - delete existing field(s) from a document.
MongoGetAll - get all documents.
MongoGetByFilter - find documents using filter.
MongoGetByID - find one document by ID.
MongoUpdateByID - update a document - edit existing fields - add new fields - do not remove any existing field.
QueryString - basic implementation.
RedisCreate - SET key.
RedisCreateHash - SET hashes.
RedisDelete - DEL key.
RedisDeleteHash - DEL hashes.
RedisRead - GET key.
RedisReadHash - GET hashes.
UpdatePost - PUT /posts/:id.
UpdateUser - PUT /users.