Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scout-api-client

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scout-api-client

The REST-API client for scout, powered by typescript & axios.

  • 1.37.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Scout-api-client

This is generated api client by open-api-generator.

Once you have installed that on your target project you can use scout API:

import { GeoApi } from '@akido/scout-api-client';

export const scoutApi = new GeoApi({
  basePath: SCOUT_API_URL,
});

const example = async () => {
  try {
    const { data } = await scoutApi.fetchMapLayers();

    console.log(data, 'Result from api.');
  } catch (error) {
    console.log('API error: ', error);
  }
};

example();

For publishing new version

Navigate to scout/apps/api, make sure all dependencies are installed and run the server:

yarn run dev

Right after that in the same folder run:

yarn run api:generate-client

This command will generate scout-api-client under scout/libs/scout-api-client.

One you are ready to publish new version of package please increment package version (libs/scout-api-client/package.json), and run npm publish under scout/libs/scout-api-client.

All done! Now you published new version of scout-api-client!

Troubleshooting

  • Make sure API server has been started before yarn run api:generate-client running
  • Check the yarn run api:generate-client output, there might be errors related to swagger
  • Make sure you have read/write GitLab token for private registry (you can find it in 1password)
  • Make sure you have updated version of the package in libs/scout-api-client/package.json and it is above version that you currently have in GitLab registry

FAQs

Package last updated on 21 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc