Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 47b96a3

Browse files
committed
fixed link
2 parents c192370 + 298a238 commit 47b96a3

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
.idea/
1414
*.iml
1515
*.iws
16+
*.tgz

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
## <a name="who"></a>Audience
1717

18-
You are an Apigee Edge API proxy developer, or you would like to learn about developing APIs that run on Apigee Edge. At a minimum, we assume you're familiar with Apigee Edge and how to create simple API proxies. To learn more, we recommend this [getting-started tutorial](http://apigee.com/docs/api-services/tutorials/create-your-first-api).
18+
You are an Apigee Edge API proxy developer, or you would like to learn about developing APIs that run on Apigee Edge. At a minimum, we assume you're familiar with Apigee Edge and how to create simple API proxies. To learn more, we recommend this [getting-started tutorial](https://docs.apigee.com/api-platform/tutorials/add-and-configure-your-first-api).
1919

2020
## <a name="intro"></a>Intro
2121

22-
This repository contains a collection of sample API proxies that you can deploy and run on [Apigee Edge](http://apigee.com/about/products/api-management).
22+
This repository contains a collection of sample API proxies that you can deploy and run on [Apigee Edge](https://apigee.com/api-management/#/products).
2323

2424
![alt text](./images/sample-proxies-1.png)
2525

@@ -42,7 +42,7 @@ In addition, you'll find:
4242

4343
## <a name="using"></a>Using the sample proxies
4444

45-
Most developers begin by identifying an interesting sample based on a specific use case or need. You'll find the samples in the `./api-platform-samples/sample-proxies` folder. The Apigee doc site also has a handy [samples overview page](http://apigee.com/docs/api-services/samples/samples-reference).
45+
Most developers begin by identifying an interesting sample based on a specific use case or need. You'll find the samples in the `./api-platform-samples/sample-proxies` folder. The Apigee doc site also has a handy [samples overview page](https://docs.apigee.com/api-platform/samples/samples-reference).
4646

4747

4848
For example, if you're interested in doing XML to JSON transformations, check out `api-platform-samples/sample-proxies/xmltojson`.
@@ -158,7 +158,7 @@ API products, apps, and developers.
158158
Simple scripts to help you deploy the sample API proxies and profiles that they
159159
rely on, including API products, developers, and apps.
160160
161-
Set you Apigee API Platform account settings in `setenv.sh` ([Register for a free Apigee account](http://eneterprise.apigee.com/signup))
161+
Set you Apigee API Platform account settings in `setenv.sh` ([Register for a free Apigee account](https://docs.apigee.com/api-platform/get-started/creating-apigee-edge-account))
162162
163163
To deploy a single sample, run `deploy.sh proxyName`, where `proxyName` is the name of the directory under `/sample-proxies` that contains the proxy you want to deploy.
164164
@@ -178,7 +178,7 @@ To deploy all samples and API products, run `deploy_all.sh`
178178
179179
## <a name="docs"></a>Apigee Edge documentation
180180
181-
The Apigee Edge docs are [here](http://apigee.com/docs).
181+
The Apigee Edge docs are [here](https://docs.apigee.com).
182182
183183
---
184184

doc-samples/hosted-targets/node-hosted-express/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ This sample is a Node.js proxy that uses [express](https://www.npmjs.com/package
8080
8181
# Ask the community
8282
83-
[![alt text](../../images/apigee-community.png "Apigee Community is a great place to ask questions and find answers about developing API proxies. ")](https://community.apigee.com?via=github)
83+
[![alt text](../../../images/apigee-community.png "Apigee Community is a great place to ask questions and find answers about developing API proxies. ")](https://community.apigee.com?via=github)
8484
8585
---
8686
@@ -99,3 +99,4 @@ See the License for the specific language governing permissions and
9999
limitations under the License.
100100
101101
http://docs.apigee.com/api-services/reference/supported-software
102+

doc-samples/hosted-targets/node-hosted-hello/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This sample is a simple hello world Node.js proxy.
5858
5959
# Ask the community
6060
61-
[![alt text](../../images/apigee-community.png "Apigee Community is a great place to ask questions and find answers about developing API proxies. ")](https://community.apigee.com?via=github)
61+
[![alt text](../../../images/apigee-community.png "Apigee Community is a great place to ask questions and find answers about developing API proxies. ")](https://community.apigee.com?via=github)
6262
6363
---
6464
@@ -77,3 +77,4 @@ See the License for the specific language governing permissions and
7777
limitations under the License.
7878
7979
http://docs.apigee.com/api-services/reference/supported-software
80+

sample-proxies/oauth-advanced/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To run this sample, you'll need:
3030

3131
* Yeoman [installed](http://yeoman.io/)
3232

33-
* Install oauth-auth-code-grant-sample generator:
33+
* Install oauth-auth-code-grant-sample generator (You can find the source code [here](https://github.com/apigee/api-platform-samples/blob/master/sample-proxies/oauth-advanced/app/index.js)):
3434
`npm install generator-oauth-auth-code-grant-sample -g`
3535

3636
* Please note that the sample does not run properly in Windows 10. Please run in macOS or Linux for full compatibility.

sample-proxies/oauth-advanced/app/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,31 +98,31 @@ module.exports = yeoman.generators.Base.extend({
9898

9999
// deploy user-mgmt-v1
100100
shell.cd('user-mgmt-v1');
101-
shell.exec('apigeetool deployproxy -u '+this.uname+' -p '+this.password+' -o '+this.orgname+' -e '+this.envname+ ' -n user-mgmt-v1 -d .');
101+
shell.exec('apigeetool deployproxy -u '+this.uname+' -p \''+this.password+'\' -o '+this.orgname+' -e '+this.envname+ ' -n user-mgmt-v1 -d .');
102102

103103
// deploy oauth2
104104
shell.cd('../oauth2');
105-
shell.exec('apigeetool deployproxy -u '+this.uname+' -p '+this.password+' -o '+this.orgname+' -e '+this.envname+ ' -n oauth2 -d .');
105+
shell.exec('apigeetool deployproxy -u '+this.uname+' -p \''+this.password+'\' -o '+this.orgname+' -e '+this.envname+ ' -n oauth2 -d .');
106106

107107
// provision login-app
108108
shell.cd('../provisioning');
109-
shell.exec('./provision-login-app.sh '+this.uname+' '+this.password+' '+this.orgname+' '+this.envname+' '+this.mgmtapiurl);
109+
shell.exec('./provision-login-app.sh '+this.uname+' \''+this.password+'\' '+this.orgname+' '+this.envname+' '+this.mgmtapiurl);
110110

111111
// npm install for login-app
112112
shell.cd('../login-app/apiproxy/resources/node');
113113
shell.exec('npm install');
114114

115115
// deploy login-app
116116
shell.cd('../../..');
117-
shell.exec('apigeetool deployproxy -u '+this.uname+' -p '+this.password+' -o '+this.orgname+' -e '+this.envname+ ' -n login-app -d . -U');
117+
shell.exec('apigeetool deployproxy -u '+this.uname+' -p \''+this.password+'\' -o '+this.orgname+' -e '+this.envname+ ' -n login-app -d . -U');
118118

119119
// provision webserver
120120
shell.cd('../provisioning');
121-
shell.exec('./provision-webserver.sh '+this.uname+' '+this.password+' '+this.orgname+' '+this.envname+' '+this.mgmtapiurl);
121+
shell.exec('./provision-webserver.sh '+this.uname+' \''+this.password+'\' '+this.orgname+' '+this.envname+' '+this.mgmtapiurl);
122122

123123
//capture clientID and secret from last step and put in webserver-app bundle
124-
var webserverappkey = shell.exec("curl -H 'Accept: application/json' -u "+this.uname+":"+this.password+" "+this.mgmtapiurl+"/v1/o/"+this.orgname+"/developers/webdev@example.com/apps/webserver-app 2>/dev/null | grep consumerKey | awk -F '\"' '{ print $4 }'").output;
125-
var webserverappsecret = shell.exec("curl -H 'Accept: application/json' -u "+this.uname+":"+this.password+" "+this.mgmtapiurl+"/v1/o/"+this.orgname+"/developers/webdev@example.com/apps/webserver-app 2>/dev/null | grep consumerSecret | awk -F '\"' '{ print $4 }'").output;
124+
var webserverappkey = shell.exec("curl -H 'Accept: application/json' -u '"+this.uname+":"+this.password+"' "+this.mgmtapiurl+"/v1/o/"+this.orgname+"/developers/webdev@example.com/apps/webserver-app 2>/dev/null | grep consumerKey | awk -F '\"' '{ print $4 }'").output;
125+
var webserverappsecret = shell.exec("curl -H 'Accept: application/json' -u '"+this.uname+":"+this.password+"' "+this.mgmtapiurl+"/v1/o/"+this.orgname+"/developers/webdev@example.com/apps/webserver-app 2>/dev/null | grep consumerSecret | awk -F '\"' '{ print $4 }'").output;
126126
// remove trailing whitespace
127127
webserverappkey = webserverappkey.replace(/\n$/, "");
128128
webserverappsecret = webserverappsecret.replace(/\n$/, "");
@@ -142,8 +142,8 @@ module.exports = yeoman.generators.Base.extend({
142142

143143
shell.cd('webserver-app');
144144
//deploy webserver-app bundle
145-
shell.exec('apigeetool deployproxy -u '+this.uname+' -p '+this.password+' -o '+this.orgname+' -e '+this.envname+ ' -n webserver-app -d .');
145+
shell.exec('apigeetool deployproxy -u '+this.uname+' -p \''+this.password+'\' -o '+this.orgname+' -e '+this.envname+ ' -n webserver-app -d .');
146146

147147
},
148148

149-
});
149+
});

sample-proxies/oauth-advanced/package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-oauth-auth-code-grant-sample",
3-
"version": "0.1.6",
3+
"version": "0.1.10",
44
"description": "Generator for OAuth authorization code grant type using Apigee",
55
"files": [
66
"app",
@@ -23,14 +23,11 @@
2323
"scripts": {
2424
"test": "echo \"Error: no test specified\" && exit 1"
2525
},
26-
"repository": {
27-
"type": "git",
28-
"url": "git+https://github.com/dzuluaga/oauth-auth-code-grant-sample.git"
29-
},
26+
"repository": "github:apigee/api-platform-samples/sample-proxies/oauth-advanced",
3027
"author": "",
3128
"license": "ISC",
3229
"bugs": {
33-
"url": "https://github.com/dzuluaga/oauth-auth-code-grant-sample/issues"
30+
"url": "https://github.com/apigee/api-platform-samples/issues"
3431
},
35-
"homepage": "https://github.com/dzuluaga/oauth-auth-code-grant-sample#readme"
32+
"homepage": "https://github.com/apigee/api-platform-samples/tree/master/sample-proxies/oauth-advanced#readme"
3633
}

0 commit comments

Comments
 (0)