Was this helpful?

 

API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:

/resourcefiles

Description: imports and creates a resource file at the prganization, environment, or API proxy level

Verb: POST
Auth: Basic Auth
Media types:
application/octet-stream

Overview: Use this method to import and create a resource file at the organization, the environment or the API proxy level.

Sample Request:
At the organization level:

$ curl -H "Content-Type: application/octet-stream" -X POST -T setHeader.js https://api.enterprise.apigee.com/v1/o/{org_name}/resourcefiles?"name=setHeader.js&type=jsc" -u myname:mypass

At the environment level:

$ curl -H "Content-Type: application/octet-stream" -X POST -T setHeader.js https://api.enterprise.apigee.com/v1/o/{org_name}/environments/test/resourcefiles?"name=setHeader.js&type=jsc" -u myname:mypass

At the API proxy level

$ curl -H "Content-Type: application/octet-stream" -X POST -T setHeader.js https://api.enterprise.apigee.com/v1/o/{org_name}/apis/weatherapi/revisions/{revision_number}/resourcefiles?"name=setHeader.js&type=jsc" -u myname:mypass
Query Parameters:
Name Description Default Required?
name The name of the resource, including the file type extension. N/A Yes
type The resource type (jsc, java, py, xsl, wsdl, xsd) N/A Yes
Sample Response:
{
  "name" : "setHeader.js",
  "type" : "jsc"
}

 

コメントを追加

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.