{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • General
    • Edge/API Management
    • Developer Portal
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • General /
This question was closed Dec 14, 2018 at 01:37 PM by HIMADRI BHATTACHARJEE.
avatar image
0
Question by HIMADRI BHATTACHARJEE · Dec 12, 2018 at 05:10 AM · 40 Views api proxy

I want to put json payload in request of proxy and filter it out in response

i want to have the following json data in request

{"altitude":"444.0","heading":"230.0","timestamplocal":"2018-12-07 18:37:24","fuelLevel":"359.04"

How can i put the data in request of proxy?

Comment
Add comment Show 5
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image HIMADRI BHATTACHARJEE · Dec 12, 2018 at 05:12 AM 0
Link

The above json payload in request.I want to filter out only 2 keys in the response.Can u explain the flow also?What will be my target backend for the above project?

avatar image HIMADRI BHATTACHARJEE · Dec 12, 2018 at 05:41 AM 0
Link

I want to create a request to input into api proxy.

the keys i want are vehicleregnumber,latitude,longitude,gpsspeed.

avatar image Nagashree B HIMADRI BHATTACHARJEE   · Dec 12, 2018 at 05:49 AM 0
Link

Do you have the swagger or sample request payload?

If you are free to decide the request payload structure, you can have a flat structure with the attributes mentioned by you.

avatar image HIMADRI BHATTACHARJEE Nagashree B · Dec 12, 2018 at 05:52 AM 0
Link

{"altitude":"444.0","heading":"230.0","timestamplocal":"2018-12-07 18:37:24","fuelLevel":"359.04","location":"Srinagar - Kanyakumari Hwy, Naduhalli, Tamil Nadu 636701, India","vehicleregnumber":"NL01AA3961",

Please guide me how can i set up the request?

Show more comments

Close

2 Answers

  • Sort: 
avatar image
0

Answer by Nagashree B   · Dec 12, 2018 at 05:23 AM

@himadri bhattacharjee, can you explain a little bit more. Is this payload coming in the request to the API proxy or do you want to have this as a static payload sent to the Target? Which keys do you want to filter and what is the response json format you are expecting?

Wherever you would be routing your request that would be your target backend. Or are you using the API proxy just to manipulate the request json and send out the response?

You can use the extract variables policy with the jsonpath to filter out the required json elements

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Dino-at-Google   · Dec 14, 2018 at 12:26 AM

Your request is not clear.

What do you mean "I want to HAVE THE FOLLOWING DATA"?

Are you asking about how to structure your client code to make a request containing that data?

"Putting the data in the request" is ... dependent upon the client framework you use. If you use curl, then you can "PUT" the data in the request by using the -d switch.

curl -i https://myendpoint/mybasepath -H content-type:application/json \
  -d '{"altitude":"444.0","heading":"230.0","timestamplocal":"2018-12-07 18:37:24","fuelLevel":"359.04"}'

If I do this, then the thing (maybe a proxy) listening at https://myendpoint/mybasepath will receive that data.

If this is NOT what you want to do, then you'll need to be much more descriptive and specific about what you are asking. Give examples. Elaborate.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

68 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Api proxy new resource's description and input list 1 Answer

Can I filter certain resource paths while defining product ? 1 Answer

How to support target pre and post flow in shared-flow in apigee ? 1 Answer

checking the presence of a string in an array of strings in conditional flow. 1 Answer

Management API Update API Product 2 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • General
  • Edge/API Management
  • Developer Portal
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges