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
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
Put the package under your project folder and add the following in import:
import "./drs_api"
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 |
- AccessMethods
- AccessUrl
- AllOfDrsObjectAccessMethods
- AllOfDrsObjectChecksums
- AllOfDrsObjectContents
- BasicResponse
- BodyLoginTokenPost
- Checksums
- ContentsExpanded
- DrsObject
- HttpValidationError
- ModelError
- Token
- ValidationError
- 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)