Coder Social home page Coder Social logo

fortifyapi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fortifyapi's Issues

Add/create methods missing?

Hi,
I am not very experienced at python but I can't seem to find / call the first 3 documented method?
More specifically:

  • add_project_version_attribute
  • create_project_version
  • create_new_project_version
    Have they not been implemented yet?
    Kind regards

get_project_version_issue_details new implementation not working

When using the new interface for getting issues details, no data is returned:

def get_project_version_issue_details(
          self, instance_id, project_name, version_name, engine="SCA"
      ):

This triggers the API endpoint with the following parameters:

/api/v1/issueDetails?instanceId=10108&projectName=myproject&projectVersionName=myversion&engineType=SCA

In [4]: response = client.get_project_version_issue_details(10108, "myproject", "myversion")
In [5]: response.data
Out[5]: {'data': [], 'count': 0, 'responseCode': 200}

In [6]: response.success
Out[6]: True

In [7]: response.message
Out[7]: 'OK'

> Both project name and version name are corrected, I even tried using the version id, but getting the same results.

When I use the old version:

```python
      def get_project_version_issue_details(self, issue_id):
          """
>>        Returns trace analysis and other details of a given issue.  The issue ID can be found from the /issues or
          projectVersions endpoint.
          :param issue_id:
          :return: full detail of a given issue
          """ 
          url = '/api/v1/issueDetails/' + str(issue_id)
          return self._request('GET', url)

Which triggers the endpoint:

/api/v1/issueDetails/10108

It returns the issue details correctly.

bulk_create does not handle custom attrs correctly

In bulk_create_new_application_version_request, the custom attributes parameter only allows 1 custom attribute to be specified and only allows for attributes with where the user is to enter data, not those which have selectable options.

A proposed fix would to extend custom_attributes to be an array, consisting of 3 items tuples where idx1=attrId, idx2=values, idx3=value.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.