okidoks-server

command module
v0.0.0-...-a062895 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 9 Imported by: 0

README

okidoks-server

okidoks-server is meant to provide a simple API for exchanging data with its sister project okidoks-client.

  1. Have a postgres database named okidoks_db and user postgres on localhost and bound to port 5432.
  2. Build and run ./main and head over to localhost:8081/resources.

Prerequisites

  • gin: router & webserver
  • gorm: object-relational mapper (ORM)
  • postgres: database

REST-API

Method Endpoint Description
GET /api/v1/resources returns all resources
GET /api/v1/resource/prefix/*suffix returns single resource
GET /api/v1/contributors returns all contributors
GET /api/v1/publishers returns all publishers
POST /api/v1/resource creates a new resource

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
logger/logger.go
logger/logger.go
commonmeta
Version: v0.11 URL: https://commonmeta.org/commonmeta_v0.11.json
Version: v0.11 URL: https://commonmeta.org/commonmeta_v0.11.json

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL