Skip to content

CenterForMedicalGeneticsGhent/drs_api_go

Repository files navigation

Go API client for drs_api

GET request: - Fetch a DrsObject from the database by sending a unique ID through the request - Fetch an access url to the data which the object refers to - Fetch DrsObjects by doing a search on the aliases POST request: - Create a non-existing DrsObject in the database by giving an identifier DELETE request: - Delete a DrsObject from the database by unique identifier PUT request: - Update an existing DrsObject by unique identifier and the changes in the body

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 1.2.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

import "./drs_api"

Documentation for API Endpoints

All URIs are relative to /

Class Method HTTP request Description
DataRepositoryServiceApi DeleteObjectGa4ghDrsV1ObjectsObjectIdDelete Delete /ga4gh/drs/v1/objects/{object_id} Delete a DrsObject
DataRepositoryServiceApi GetObjectAliasGa4ghDrsV1ObjectsGet Get /ga4gh/drs/v1/objects Query DrsObjects on alias
DataRepositoryServiceApi GetObjectGa4ghDrsV1ObjectsObjectIdAccessAccessIdGet Get /ga4gh/drs/v1/objects/{object_id}/access/{access_id} Get a URL for fetching bytes
DataRepositoryServiceApi GetObjectGa4ghDrsV1ObjectsObjectIdGet Get /ga4gh/drs/v1/objects/{object_id} Retrieve a DrsObject
DataRepositoryServiceApi PostObjectGa4ghDrsV1ObjectsPost Post /ga4gh/drs/v1/objects Create a new DrsObject
DataRepositoryServiceApi PutObjectGa4ghDrsV1ObjectsObjectIdPut Put /ga4gh/drs/v1/objects/{object_id} Update a DrsObject
HealthApi GetHealthHealthGet Get /health Check if the API is running correctly
LoginApi LoginTokenPost Post /token Login

Documentation For Models

Documentation For Authorization

OAuth2PasswordBearer

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

ict@cmgg.be

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published