Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to oauth-validate-key-secret #121

Open
wants to merge 94 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
fed888d
Update deploy_proxy.sh
WWitman Nov 29, 2017
efdb51d
Update README.md
WWitman Nov 29, 2017
473e1c7
Merge pull request #85 from florent-andre/documentation-fixes
WWitman Nov 30, 2017
3966393
Update package.json
WWitman Dec 1, 2017
bd064ab
Update package.json
WWitman Dec 1, 2017
2c143a2
Surround pwd argument with quotes in commands
deboraelkin2 Jan 11, 2018
042bf63
Updated repository link
deboraelkin2 Jan 11, 2018
4a3afe5
Updated version number and links to repository, issues and homepage
deboraelkin2 Jan 12, 2018
0064102
Added direct link to generator source code
deboraelkin2 Jan 14, 2018
81c391c
Added direct link to generator source code
deboraelkin2 Jan 16, 2018
62d5ab7
Added direct link to generator source code
deboraelkin2 Jan 16, 2018
fd88fc6
add troubleshooting tip
jonesfloyd Feb 21, 2018
b4bc7c7
troubleshooting edits
jonesfloyd Feb 21, 2018
f2597a0
Merge branch 'master' of github.com:apigee/api-platform-samples
DinoChiesa Mar 9, 2018
c1d7f23
update simplesoap example to use https endpoint for target and proxy
DinoChiesa Mar 9, 2018
ac8fcd2
Merge pull request #92 from DinoChiesa/master
WWitman Mar 9, 2018
0cdd3b9
Update README.md
pwwpche Mar 25, 2018
32d3f7d
Merge remote-tracking branch 'refs/remotes/origin/patch-1' into patch-1
deboraelkin2 Apr 11, 2018
c93e564
Update README.md
WWitman Apr 11, 2018
0530831
Merge pull request #90 from deboraelkin2/patch-1
WWitman Apr 11, 2018
e35a235
new hosted targets exmaples
WWitman Apr 30, 2018
a31214b
New hosted targets examples.]
WWitman Apr 30, 2018
362c356
Update README.md
WWitman Apr 30, 2018
298a238
Update README.md
WWitman Apr 30, 2018
c192370
schema does not include unsupported KeyStore element
WWitman May 10, 2018
47b96a3
fixed link
WWitman May 10, 2018
169ab5b
sync schemas configs
WWitman May 11, 2018
a3a4ec0
latest xsd generated
WWitman May 22, 2018
04af847
added the jwt policy
WWitman May 22, 2018
70f559c
added note about setVariable argument
WWitman May 29, 2018
8bdb103
rezipped with latest change
WWitman May 29, 2018
e6f8501
Update README.md
WWitman Jun 19, 2018
aa0f31e
Update README.md
WWitman Jun 19, 2018
0958575
Update README.md
WWitman Jun 19, 2018
2f4feaf
Added support for the configuring TLS for the HTTP clients created by…
WWitman Jun 20, 2018
287238c
Adding readme for sample code to be added.
Aug 27, 2018
f973b39
Revert "Adding readme for sample code to be added."
Aug 27, 2018
3686b4d
Adding folder and readme for API BaaS transition samples to come.
Aug 28, 2018
9c51b89
Add what's new in the docs proxy
jonesfloyd Sep 1, 2018
2413bd3
Removing this because we’re not going to use it.
Sep 19, 2018
dbdde97
Updating schema to add new elements for flow callout policy.
Oct 18, 2018
cb2dd17
Update README
kbrinner Oct 30, 2018
2269a63
Update package.json
WWitman Nov 2, 2018
1fedabb
Merge pull request #101 from kbrinner/patch-1
WWitman Nov 13, 2018
434659d
Change copyright date
WWitman Nov 13, 2018
f4279ac
Merge pull request #102 from WWitman/copyright
WWitman Nov 13, 2018
72b75eb
update copyright date
WWitman Nov 15, 2018
f9aa639
Merge pull request #104 from WWitman/copyright
WWitman Nov 15, 2018
6d7434e
Merge pull request #95 from pwwpche/patch-1
WWitman Nov 15, 2018
92b657c
Added new sample for custom dependency
WWitman Jan 10, 2019
489a560
Merge pull request #108 from WWitman/master
WWitman Jan 10, 2019
5590d45
Update README.md
WWitman Jan 22, 2019
a445b21
Update README.md
WWitman Feb 26, 2019
1a0a6ed
added graphql-sample
dfeuer Mar 22, 2019
2261d24
Update README.md
dfeuer Mar 22, 2019
88ac618
updated sequence diagram to remove scopes qp after auth code generation
akoo1010 Apr 2, 2019
eb383ba
use printf instead of echo for more shell consistency
akoo1010 May 22, 2019
a00dc95
Merge pull request #111 from akoo1010/master
akoo1010 May 27, 2019
88f66f0
Create 3.0 version
llynch00 Jul 30, 2019
2b2900e
Add new elements for 19.03.01 cherrypick release
jonesfloyd Oct 2, 2019
52ea60e
Add note about 10MB limit even when streaming
Oct 30, 2019
cbbdee5
Add note about 10MB limit for streaming
Oct 30, 2019
b8deb97
Fix b/143958954
Nov 7, 2019
5f888da
add OASValidation policy, update AM and JWT policies
llynch00 Apr 3, 2020
062393d
added the OAS validation policy
llynch00 Apr 3, 2020
342fd30
Delete package-lock.json
WWitman Apr 6, 2020
ffcea79
added tutorial-demos & maps-demo
tyayers Jul 8, 2020
d9b3dbb
fixed image
tyayers Jul 8, 2020
9db9d69
added links to apps
tyayers Jul 8, 2020
a7a741a
add sample proxy for apigee
WWitman Jul 14, 2020
cd653ef
added sapigee project
Sep 25, 2020
58dde16
updated energy spec
Sep 25, 2020
62a9c73
updated energy spec
Sep 25, 2020
db35be6
updated energy spec
Sep 25, 2020
82a01bb
updated energy spec
Sep 26, 2020
24de9ef
updated sapigee energy spec
Sep 30, 2020
d61d29b
updated sapigee energy spec
Sep 30, 2020
d829d1a
added sap energy proxy and frontend
Sep 30, 2020
ed3d2c1
added firestore demo
Oct 7, 2020
114a91c
updated firestore spec
Oct 7, 2020
a77d3cd
updated firestore spec
Oct 7, 2020
eb37307
updated firestore spec
Oct 8, 2020
9443d09
updated firestore spec
Oct 8, 2020
b702dc6
updated firestore spec
Oct 8, 2020
6aad76c
updated firestore demo
Oct 8, 2020
2108858
updated firestore demo
Oct 8, 2020
ee3e9f7
updated firestore demo
Oct 8, 2020
af74c8f
added factory automation
Nov 20, 2020
ce9f888
added customization of machineid
Nov 20, 2020
2804646
Update energy-management.yaml
tyayers Apr 29, 2021
f033c5b
Update factory-automation.yaml
tyayers Apr 29, 2021
0391edb
update to oauth-validate-key-secret
DinoChiesa Feb 24, 2022
2443cb1
update to oauth-validate-key-secret
DinoChiesa Feb 24, 2022
2d0fc78
Merge branch 'oauth-dino-update-20220224' of github.com:DinoChiesa/ap…
DinoChiesa Mar 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
.idea/
*.iml
*.iws
*.tgz
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

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

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).
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).

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

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).
This repository contains a collection of sample API proxies that you can deploy and run on [Apigee Edge](https://apigee.com/api-management/#/products).

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

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

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

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).
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).


For example, if you're interested in doing XML to JSON transformations, check out `api-platform-samples/sample-proxies/xmltojson`.
Expand Down Expand Up @@ -158,7 +158,7 @@ API products, apps, and developers.
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` ([Register for a free Apigee account](http://eneterprise.apigee.com/signup))
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))

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.

Expand All @@ -178,11 +178,11 @@ To deploy all samples and API products, run `deploy_all.sh`

## <a name="docs"></a>Apigee Edge documentation

The Apigee Edge docs are [here](http://apigee.com/docs).
The Apigee Edge docs are [here](https://docs.apigee.com).

---

Copyright © 2015 Apigee Corporation
Copyright © 2018 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
Expand Down
144 changes: 144 additions & 0 deletions default-proxies/helloworld/openapi/mocktarget3.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
openapi: 3.0.0
info:
description: OpenAPI Specification for the Apigee mock target service endpoint.
version: 1.0.0
title: Mock Target API
paths:
/:
get:
summary: View personalized greeting
operationId: View a personalized greeting
description: View a personalized greeting for the specified or guest user.
parameters:
- name: user
in: query
description: Your user name.
required: false
schema:
type: string
responses:
"200":
description: Success
/help:
get:
summary: Get help
operationId: Get help
description: View help information about available resources in HTML format.
responses:
"200":
description: Success
/user:
get:
summary: View personalized greeting
operationId: View personalized greeting
description: View a personalized greeting for the specified or guest user.
parameters:
- name: user
in: query
description: Your user name.
required: false
schema:
type: string
responses:
"200":
description: Success
/iloveapis:
get:
summary: View API affirmation
operationId: View API affirmation
description: View API affirmation in HTML format.
responses:
"200":
description: Success
/ip:
get:
summary: View IP address
operationId: View IP address
description: View the IP address of the client in JSON format.
responses:
"200":
description: Success
/xml:
get:
summary: View XML response
operationId: View XML response
description: View a sample response in XML format.
responses:
"200":
description: Success
/json:
get:
summary: View JSON response
operationId: View JSON response
description: View a sample response in JSON format.
responses:
"200":
description: Success
/echo:
get:
summary: View request headers and body
operationId: View request headers and body
description: View the request headers and body in JSON format.
responses:
"200":
description: Success
post:
summary: Send request and view request headers and body
operationId: Send request and view request headers and body
description: "Send a request and view the resulting request headers and body in JSON
format.
The request payload can be specified using one of the
following formats: application/json, application/x-www-form-urlencoded,
or application/xml."
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/request-body"
description: Request payload in application/json,
application/x-www-form-urlencoded, or application/xml format.
required: true
responses:
"200":
description: Success
"/statuscode/{code}":
get:
summary: View status code and message
operationId: View status code and message
description: View status code and message for the specified value.
parameters:
- name: code
in: path
description: HTTP status code.
required: true
schema:
type: string
responses:
"200":
description: Success
/auth:
get:
security:
- basicAuth: []
summary: Validate access using basic authentication
operationId: Validate access using basic authentication
description: Validate access using basic authentication.
responses:
"200":
description: Success
servers:
- url: http://mocktarget.apigee.net
- url: https://mocktarget.apigee.net
components:
securitySchemes:
basicAuth:
type: http
description: HTTP Basic Authentication.
scheme: basic
schemas:
request-body:
properties:
replace-me:
type: object
description: Replace with request payload in application/json,
application/x-www-form-urlencoded, or application/xml format.
3 changes: 3 additions & 0 deletions doc-samples/hosted-targets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This directory contains samples that you can deploy on Apigee Edge Hosted Targets. See the README files for detailed instructions.

To learn about Hosted Targets, see [Hosted Targets overview](https://docs.apigee.com/api-platform/hosted-targets/hosted-targets-overview.html) in the Apigee Edge documentation.
64 changes: 64 additions & 0 deletions doc-samples/hosted-targets/node-hosted-custom-deps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# How to create a Node.js application with Hosted Functions using custom modules

This sample is a Node.js proxy that uses [express](https://www.npmjs.com/package/express) and a custom module.

## Deploy the proxy
1. Make sure you have [apigeetool](https://github.com/apigee/apigeetool-node) installed
2. Make sure you have [get_token](https://apidocs.apigee.com/api-reference/content/using-oauth2-security-apigee-edge-management-api) script installed
3. Deploy your proxy:

```
get_token && apigeetool deployhostedtarget \
-o <apigee org> \
-e <apigee env> \
-n hosted-hello-conversion \
-d ./myapp/ \
-b hosted-hello-conversion \
--bundled-dependencies \
--json \
--token "$(< ~/.sso-cli/valid_token.dat)"
```
**Note**: This step might take a minute or two to work

4. Test your proxy deployment:

```
curl https:/<apigee org>-<apigee env>.apigee.net/hosted-hello-conversion/hello/spanish
{"hello":"This is how you say hello in spanish: Hola!"}
```

5. Undeploy your proxy:

```
get_token && apigeetool undeploy \
-o <apigee org> \
-e <apigee env> \
--json \
--token "$(< ~/.sso-cli/valid_token.dat)" \
--api hosted-hello-conversion \
--revision <revision to undeploy e.g 1>
```

For more insight into Hosted Functions and Apigee, visit our [documentation](https://docs.apigee.com/api-platform/hosted-functions/hosted-functions-overview.html).

# Ask the community

[![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)

---

Copyright © 2017 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,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

http://docs.apigee.com/api-services/reference/supported-software
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
runtime: node
runtimeVersion: 6
application: hello-conversion
env:
- name: NODE_ENV
value: production
- name: LOG_LEVEL
value: 3
30 changes: 30 additions & 0 deletions doc-samples/hosted-targets/node-hosted-custom-deps/myapp/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
var express = require('express')
const sayHello = require('say-hello')
var app = express()

app.get('/', function (req, res) {
res.json({ hello: "Hello World! Hola Mundo! Bonjour le monde!" })
})

app.get('/hello/:language', function (req, res) {
var language = req.params.language
var message = "This is how you say hello in " + language + ": "
switch (language.toLowerCase()) {
case 'spanish':
message += sayHello.spanish()
break
case 'french':
message += sayHello.french()
break
case 'english':
message += sayHello.english()
break
default:
message = "Sorry, unable say hello in the language: " + language
}
res.json({ hello: message })
})

var server = app.listen(process.env.PORT || 9000, function () {
console.log('Listening on port %d', server.address().port)
})

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "hello-conversion",
"version": "0.0.0",
"description": "Simple application saying hello in three languages",
"main": "index.js",
"author": "",
"license": "ICS",
"private": true,
"scripts": {
"start": "node ."
},
"dependencies": {
"express": "^4.16.0",
"say-hello": "1.0.0"
},
"bundledDependencies": [
"say-hello"
]
}
Loading