Skip to content

mia-platform/go-crud-service-client

Repository files navigation

Test and build Coverage Status GoDoc

Golang CRUD service client

Introduction

In our projects, we often use CRUD Service and we want a way to interact to it with a standard client.

At the moment, it is limited. The supported methods are:

  • GetById: GET
  • List: GET /
  • Count: GET /count
  • Export: GET /export
  • PatchById: PATCH /:id
  • PatchMany: PATCH /
  • PatchBulk: PATCH /bulk
  • Create: POST /
  • DeleteById: DELETE /:id
  • DeleteMany: DELETE /
  • UpsertOne: POST /upsert-one

If you need some other method, please add it with a PR.

Usage

To use it, install with

go get github.com/mia-platform/go-crud-service-client

Development

To run tests:

make test

To generate coverage report:

make coverage