The Geo API provides access to the different features of the Telenor Geo server, including capabilities such as pub/sub, geofencing and storage of tracking data.
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: v0.1
- Package version: 0.1.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional
Put the package under your project folder and add the following in import:
import "./geoclient"
All URIs are relative to https://geo.exploratory.engineering/api/v1
Class | Method | HTTP request | Description |
---|---|---|---|
CollectionApi | CreateCollection | Post /collections | Create a new Collection |
CollectionApi | DeleteCollection | Delete /collections/{collectionId} | Delete a Collection |
CollectionApi | GetCollection | Get /collections/{collectionId} | Get a single Collection |
CollectionApi | GetCollections | Get /collections | Get all Collections |
CollectionApi | UpdateCollection | Put /collections/{collectionId} | Update a Collection |
PositionApi | CreatePosition | Post /collections/{collectionId}/trackers/{trackerId}/positions | Create a new position for the Tracker |
PositionApi | GetPositions | Get /collections/{collectionId}/trackers/{trackerId}/positions | Get all Positions for Tracker |
ProfileApi | GetProfile | Get /profile | Get authenticated Profile |
ShapeCollectionApi | CreateShapeCollection | Post /shapecollections | Create a new ShapeCollection |
ShapeCollectionApi | CreateShapeCollectionFeature | Post /shapecollections/{shapeCollectionId}/shapes | Create new GeoJSON Feature |
ShapeCollectionApi | DeleteShape | Delete /shapecollections/{shapeCollectionId}/shapes/{shapeId} | Delete a Shape |
ShapeCollectionApi | DeleteShapeCollection | Delete /shapecollections/{shapeCollectionId} | Delete a ShapeCollection |
ShapeCollectionApi | GetShape | Get /shapecollections/{shapeCollectionId}/shapes/{shapeId} | Get Shape |
ShapeCollectionApi | GetShapeCollection | Get /shapecollections/{shapeCollectionId} | Get a single ShapeCollection |
ShapeCollectionApi | GetShapeCollectionFeatureCollection | Get /shapecollections/{shapeCollectionId}/geojson | Get a GeoJSON FeatureCollection for a ShapeCollection |
ShapeCollectionApi | GetShapeCollectionShapes | Get /shapecollections/{shapeCollectionId}/shapes | Get Shapes for a ShapeCollection |
ShapeCollectionApi | GetShapeCollections | Get /shapecollections | Get all ShapeCollections |
ShapeCollectionApi | GetShapeFeature | Get /shapecollections/{shapeCollectionId}/shapes/{shapeId}/geojson | Get Shape GeoJSON Feature |
ShapeCollectionApi | ReplaceShapeCollectionFeature | Put /shapecollections/{shapeCollectionId}/shapes/{shapeId}/geojson | Replace Shape GeoJSON Feature |
ShapeCollectionApi | ReplaceShapeCollectionFeatureCollection | Put /shapecollections/{shapeCollectionId}/geojson | Replace GeoJSON FeatureCollection |
ShapeCollectionApi | UpdateShapeCollection | Put /shapecollections/{shapeCollectionId} | Edit a ShapeCollection |
SubscriptionApi | CreateSubscription | Post /subscriptions | Create a new Subscription |
SubscriptionApi | DeleteSubscription | Delete /subscriptions/{subscriptionId} | Delete a Subscription |
SubscriptionApi | GetSubscription | Get /subscriptions/{subscriptionId} | Get a single Subscription |
SubscriptionApi | GetSubscriptions | Get /subscriptions | Get all Subscriptions |
SubscriptionApi | UpdateSubscription | Put /subscriptions/{subscriptionId} | Update a Subscription |
TeamApi | CreateTeam | Post /teams | Create a new Team |
TeamApi | DeleteTeam | Delete /teams/{teamId} | Delete a Team |
TeamApi | GetTeam | Get /teams/{teamId} | Get a single Team |
TeamApi | GetTeams | Get /teams | Get all Teams |
TeamApi | UpdateTeam | Put /teams/{teamId} | Update a Team |
TrackerApi | CreateTracker | Post /collections/{collectionId}/trackers | Create a new Tracker |
TrackerApi | DeleteTracker | Delete /collections/{collectionId}/trackers/{trackerId} | Delete a Tracker |
TrackerApi | GetTracker | Get /collections/{collectionId}/trackers/{trackerId} | Get a single Tracker |
TrackerApi | GetTrackers | Get /collections/{collectionId}/trackers | Get all Trackers |
TrackerApi | UpdateTracker | Put /collections/{collectionId}/trackers/{trackerId} | Update a Tracker |
- BadRequestResponse
- CollectionResponse
- EditCollectionRequest
- EditShapeCollectionRequest
- EditSubscriptionRequest
- EditTeamRequest
- EditTrackerRequest
- ErrorDetail
- NewCollectionRequest
- NewPositionRequest
- NewShapeCollectionRequest
- NewSubscriptionRequest
- NewTeamRequest
- NewTrackerRequest
- NotFoundResponse
- PositionResponse
- ProfileResponse
- ShapeCollectionResponse
- ShapeResponse
- SmsOutput
- SmsOutputAllOf
- SmsOutputAllOfConfig
- SubscriptionConfidenceType
- SubscriptionOutput
- SubscriptionResponse
- SubscriptionResponseTrackable
- SubscriptionResponseTriggerCriteria
- SubscriptionTrackerType
- SubscriptionTriggerType
- TeamResponse
- TrackerResponse
- UnauthorizedResponse
- WebSocketOutput
- WebhookOutput
- WebhookOutputAllOf
- WebhookOutputAllOfConfig
- 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)