Was this helpful?

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

API Resource Path: /resourcefiles
A files containing executable code or definitions used by API policies to enable custom behavior and extensibility
Resource files are executable code or other types of assets (for example XSLT) that are used by API proxies at runtime. Resource files can be stored at one of three levels:
  • API proxy: Available to any policies in an API proxy.
  • Environment: Available to any policies in any API proxy deployed in the environment.
  • Organization: Available to any API proxy deployed in any environment in an organization.

Resource files are resolved by name. Apigee Edge resolves resource files from most specific (API proxy) to the most general (organization).

This enables you to store generic code that provides utility processing at the organization level. This provides for greater maintainability, since generic code is not repeated across multiple API proxies.

A good example of code that might be scoped to the organization is a library to do Base64 encoding.

The following list shows the list of supported resource types and their associated directory name:

  • jsc: JavaScripts
  • java: JAR files
  • py: Python scripts
  • wsdl: Web service description language files
  • xsd: XML schemas
  • xsl: XSLT files
Delete a resource file Detail
/resourcefiles/{resource_type}/{resource_name}
Verb: DELETE
Description: Deletes a resource file from an organization, environment or API proxy
Auth: Basic Auth
Get a resource file Detail
/resourcefiles/{resource_type}/{resource_name}
Verb: GET
Description: Gets the body of a resource from an organization, environment, or API proxy.
Media types:
application/json
text/xml
Auth: Basic Auth
Import a resource file Detail
/resourcefiles
Verb: POST
Description: imports and creates a resource file at the prganization, environment, or API proxy level
Media types:
application/octet-stream
Auth: Basic Auth
List resource files Detail
/resourcefiles
Verb: GET
Description: This method lists resource files available in an organization, an environment, or an API proxy
Media types:
application/json
text/xml
Auth: Basic Auth

 

Add new comment

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.