question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an API endpoint for generating resources

See original GitHub issue

Is your feature request related to a specific problem?

Similar to #530 we need an endpoint that can kick off a scan and return the results.

Describe the solution you’d like

A single endpoint that can scan various resources given a set of credentials and being told what type to scan

Describe alternatives you’ve considered, if any

A totally different endpoint per scan type

Additional context

The initial work should only include running the scan and returning the results synchronously.

Update 2022-05-11 @SteveDMurphy - Some smaller issues in support of this have been split off, the intent of this issue is still the same however to have an endpoint that kicks off a scan and returns the output from the generate commands

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
iamkellllycommented, May 25, 2022

Ah if it’s already basically dev complete, it should be fine to include with 1.7 @SteveDMurphy ; we were just trying to cut scope for the release since it looks like other items may not land in time. adding the milestone tag back

0reactions
SteveDMurphycommented, May 25, 2022

A comment from the PR description around the naming as well and how we got here:

In 9e805d0 all mention of the word scan was removed. There is some existing confusion around the generate and scan commands that could benefit from combining those commands (similar to what was discussed with audit/evaluate) but for consistency purposes today this will use generate exclusively.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Create an API Endpoint in 4 Quick Steps | Waldo Blog
In this blog post, we'll discuss how to create an API endpoint in four quick steps. But before that, let's learn what an...
Read more >
Create your own REST API endpoint
This article describes how to extend the REST API and create an API endpoint. We create an example plugin which provides functions for...
Read more >
Adding Custom Endpoints | REST API Handbook
If you'd like to enable Resource Discovery for your custom endpoint, you can do so using the rest_queried_resource_route filter. For example, consider a...
Read more >
How to Create an API in Three Steps - Stoplight Blog
The first step in creating an API is designing the API. ... The endpoints (or resources) you choose are the foundation of an...
Read more >
Creating a REST API in Amazon API Gateway
In Amazon API Gateway, you build a REST API as a collection of programmable entities known as API Gateway resources. For example, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found