<commit_before># Apigee API Platform Samples

Apigee API Platform Samples are designed to help developers 
learn how to use the Apigee API Platform.

Apigee's API Platform provides developers with:

* A RESTful API to enable DIY control and oversight of APIs, 
  apps, and developers 
* API Key and OAuth 1 and 2 support
* Out-of-the-box policies for functionality that you would rather
  not code yourself (like quotas, transformations, response
  caching, etc.)
* APIs and scripting support for functionality that you would 
  rather innovate and code yourself
* The ability to share your work with other developers, and to 
  reuse it across your own projects, by exposing it as
  APIs that you own and control
* Scalable, managed test and prod environments with operational 
  analytics

Fully-featured, free accounts are available at:

<http://enterprise.apigee.com/signup>

# Getting started

All of these samples require you to have an account on:
<http://enterprise.apigee.com>

You can sign up for a trial account at:
<http://enterprise.apigee.com/signup>

You also require:

Python, to use the deployment tool.

# Deploy

You can deploy all of the samples to your
organization at once.

$ cd /setup

Edit the file setenv.sh to include the settings for your API Platform account

Run:

$ sh deploy_all.sh

Note this step also deploys all API products, developers, and apps needed for OAuth.

Navigate to /sample-proxies.

$ cd ..

$ cd ./sample-proxies

List available proxies:

$ ls

Each sample API proxy directory contains a script called
invoke.sh that issues a curl command to the sample API proxy.

$ sh invoke.sh

If you make changes to the sample API proxy, simply run:

$ sh deploy.sh

to deploy your changes.

# What's here:

/sample-proxies

A set of fully-functional API proxies that you can deploy and invoke
on the Apigee API Platform. 

Feel free to modify them as needed--just e sure to deploy changes for 
them to take effect.

For a detailed overview of the available sample see:

http://apigee.com/docs/enterprise/content/api-platform-samples

/schemas

XML schemas that you can  use as a reference when working with policies, API proxy configuration,
API products, apps, and developers.

/simpleProxy

A basic API proxy that is used in the API Platform Developer Guide at:
http://apigee.com/docs

/setup

Simple scripts to help you deploy the sample API proxies and profiles that they 
rely on, including API products, developers, and apps.

Set you Apigee API Platform account settings in 

setenv.sh

(You can obtain a free account at http://eneterprise.apigee.com/signup)

To deploy a single sample, run 

$ sh deploy.sh

And provide the name of the directory under /saple-proxies that
contains the proxy you want to deploy.

To deploy all samples and API products, run:

$ deploy_all.sh

/tools

deploy.py: Python deployment tool (deploy.py) that imports an API proxy to an
organization on the Apigee platform and then deploys it to the environment
specified.

proxy_gen.sh: A simple script that interacts with the API Platform to
locally generate an API proxy scaffold.

# Get help and interact with other API developers

<http://support.apigee.com>

Copyright 2013 Apigee Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may 
not use this file except in compliance with the License. You may obtain 
a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,<commit_msg>added links<commit_after># Apigee API Platform Samples

Apigee API Platform Samples are designed to help developers 
learn how to use the Apigee API Platform.

Apigee's API Platform provides developers with:

* A RESTful API to enable DIY control and oversight of APIs, 
  apps, and developers 
* API Key and OAuth 1 and 2 support
* Out-of-the-box policies for functionality that you would rather
  not code yourself (like quotas, transformations, response
  caching, etc.)
* APIs and scripting support for functionality that you would 
  rather innovate and code yourself
* The ability to share your work with other developers, and to 
  reuse it across your own projects, by exposing it as
  APIs that you own and control
* Scalable, managed test and prod environments with operational 
  analytics

Fully-featured, free accounts are available at:

<http://enterprise.apigee.com/signup>

# Getting started

All of these samples require you to have an account on:
<http://enterprise.apigee.com>

You can sign up for a trial account at:
<http://enterprise.apigee.com/signup>

You also require:

Python, to use the deployment tool.

# Deploy

You can deploy all of the samples to your
organization at once.

$ cd /setup

Edit the file setenv.sh to include the settings for your API Platform account

Run:

$ sh deploy_all.sh

Note this step also deploys all API products, developers, and apps needed for OAuth.

Navigate to /sample-proxies.

$ cd ..

$ cd ./sample-proxies

List available proxies:

$ ls

Each sample API proxy directory contains a script called
invoke.sh that issues a curl command to the sample API proxy.

$ sh invoke.sh

If you make changes to the sample API proxy, simply run:

$ sh deploy.sh

to deploy your changes.

# What's here:

*/sample-proxies*

A set of fully-functional API proxies that you can deploy and invoke
on the Apigee API Platform. 

Feel free to modify them as needed--just e sure to deploy changes for 
them to take effect.

For a detailed overview of the available sample see:

<http://apigee.com/docs/enterprise/content/api-platform-samples>

*/schemas*

XML schemas that you can  use as a reference when working with policies, API proxy configuration,
API products, apps, and developers.

*/simpleProxy*

A basic API proxy that is used in the API Platform Developer Guide at:
http://apigee.com/docs

*/setup*

Simple scripts to help you deploy the sample API proxies and profiles that they 
rely on, including API products, developers, and apps.

Set you Apigee API Platform account settings in 

setenv.sh

(You can obtain a free account at http://eneterprise.apigee.com/signup)

To deploy a single sample, run 

$ sh deploy.sh

And provide the name of the directory under /saple-proxies that
contains the proxy you want to deploy.

To deploy all samples and API products, run:

$ deploy_all.sh

*/tools*

deploy.py: Python deployment tool (deploy.py) that imports an API proxy to an
organization on the Apigee platform and then deploys it to the environment
specified.

proxy_gen.sh: A simple script that interacts with the API Platform to
locally generate an API proxy scaffold.

# Get help and interact with other API developers

[The Apigee Developer Forum](http://support.apigee.com)

Copyright 2013 Apigee Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may 
not use this file except in compliance with the License. You may obtain 
a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
{'fraction_non_alphanumeric': 0.05416666666666667, 'fraction_numerical': 0.002777777777777778, 'mean_word_length': 4.00416956219597, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4112798', 'n_tokens_mistral': 2077, 'n_tokens_neox': 1981, 'n_words': 1041}