9 Replies Latest reply on Sep 3, 2014 4:00 AM by David virgil naranjo

    Rest API: POST Resource error

    David virgil naranjo Novice

      Hi,

       

      I am a developer of the jboss overlord project. We have an integration of our project with JON. Here are the installation steps we follow:

       

      https://developer.jboss.org/wiki/UseDtgovToDeployAnApplicationOnAJonrhqTarget 172.17.0.5

       

      From our project we call the jon rest api:

       

      https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.2/html/RestAPI/index.html#CreateCBRresourceRequest

       

      In the POST resource call there is a mistake. I imagine something is missing in the json createCBRresourceRequest  data:

       

      JSON:

      {"resourceName":"dtgov-demos-project-service-impl-1.4.0-20140901.111842-1.war","resourceId":0,"typeName":"Deployment","pluginName":null,"parentId":10118,"status":null,"typeId":0,"ancestry":null,"location":null,"description":null,"pluginConfig":{"path":"deployment"},"resourceConfig":{"runtimeName":"dtgov-demos-project-service-impl-1.4.0-20140901.111842-1.war"}}

       

      TRACE LOG:

       

      HTTP/1.1 404 Not Found
      Server=Apache-Coyote/1.1
      Content-Type=application/json
      Transfer-Encoding=chunked
      Date=Mon, 01 Sep 2014 11:19:39 GMT

       

      {
          "message": "ResourceType with name [Deployment] and plugin [null] not found"
      }

       

      In the JON instance, there is a jboss eap + switchyard instance that is managed.

       

      Thanks

      David