🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/sandblox-official/database-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sandblox-official/database-api

v0.0.0-20200906171912-97e4a33a4105
Source
Go
Version published
Created
Source

Api

Routes

Users

    POST:   users                   🡺 create a user 
    PUT:    users/by-id/{id}        🡺 modify a user 
    PUT:    users/by-name/{id}      🡺 modify a user by username   
    GET:    users                   🡺 get all users 
    GET:    users/by-id/{id}        🡺 get user info by id 
    GET:    users/by-name/{name}    🡺 get user info by username 
    DELETE: users/by-id/{id}        🡺 hide user in db (soft del) 

Worlds

    POST:   worlds                  🡺 create a world
    PUT:    worlds/{name}           🡺 modify a world
    GET:    worlds                  🡺 get world list by active users
    GET:    worlds/popular          🡺 get world list by all-time popularity
    GET:    worlds/by/{name}        🡺 get world list the creator's name
    GET:    worlds/{name}           🡺 get a world
    DELETE: worlds/{name}           🡺 hide a world in db (soft del) 

Technology

    Lang:   Go 1.15
    DB:     Gorm, MySQL
    Routes: Gorilla mux router

FAQs

Package last updated on 06 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts