{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • 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 /
avatar image
0
Question by NSaini1 · Sep 13, 2018 at 10:38 AM · 102 Views management apideveloper-app

Issue in associating product to developer app through proxy

Hi

I am trying to create a developer app thru a proxy and asigning product to it. If i open trace and copy the exact body of service callout and run thru apigee management API UI, It works fine. If I am doing it through my proxy, developer app is created but there is no product attached to it. Can anyone help?

{ "name" : "Test1", "apiProducts": ["product-v1"], "keyExpiresIn" : "-1", "callbackUrl" : "https://test.com", "attributes" : [ { "name" : "DisplayName", "value" : "Test1" }, { "name" : "Notes", "value" : "Test" } ] }

My code:

POST

https://api.enterprise.apigee.com/v1/organizations/{organization.name}/developers/{email}/apps

{ "name" : "{client_name}", "apiProducts": {allowedProducts}, "keyExpiresIn" : "-1", "callbackUrl" : "{requestRedirectUris}", , "attributes" : [ { "name" : "Notes", "value" : "Test" }]}

value of allowedProducts in trace: ["product-v1"]

Comment
Add comment Show 2
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 NSaini1 · Sep 13, 2018 at 10:39 AM 0
Link

@Dino-at-Google

avatar image lee86 · May 28, 2019 at 08:58 PM 0
Link
@NSaini1

Did you implement dynamic registration endpoint using management API itself or is there any other approach possible?

Was this done for open banking

Close

1 Answer

  • Sort: 
avatar image
1

Answer by Siddharth Barahalikar   · Sep 13, 2018 at 11:07 AM

The Create Developer App API should work fine in a proxy. But it is not recommended to use Management APIs in proxies. Please tell us your requirement, they may be some other alternatives.

Anyway in the proxy, if you are using Service Callout(SC) policy, did you add contentType in payload? I hope you have a Product with name product-v1.(anyway without it you will get 404 error)

Just to check, I have done it through a proxy, it creates App & associates a product to it. So if possible provide your SC policy config & the final payload you see in Trace, mask confidential data.

Comment
Add comment Show 3 · 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 NSaini1 · Sep 13, 2018 at 11:36 AM 0
Link

Hi Siddharth

The reqt is to onboard a new developer app thru a dynamic registration endpoint(proxy in this case) and yes I have set contentType in payload as well as added as header also

SC.Create.DevApp false

application/json Basic {private.TECHNICAL_USER_CREDENTIALS} POST { "name" : "{client_name}", "apiProducts": {allowedProducts}, "keyExpiresIn" : "-1", "callbackUrl" : "{requestRedirectUris}", "attributes" : [ { "name" : "Notes", "value" : "Ob TPP" } ] } devAppResponse https://api.enterprise.apigee.com/v1/organizations/{organization.name}/developers/{email}/apps>

avatar image Siddharth Barahalikar NSaini1   · Sep 13, 2018 at 11:59 AM 0
Link

For onboarding developer & creating app, why not use a developer portal?

--

In the payload did you try with a static value in "apiProducts": ["apiProduct"]?

avatar image Dino-at-Google ♦♦ NSaini1   · Sep 13, 2018 at 04:38 PM 0
Link

Are you certain that

 "apiProducts": {allowedProducts},

...resolves into something that looks like

 "apiProducts": [ "product1", "product2", "product3" ],

??

To check, you could use an additional AssignMessage policy that mirrors what you are using in the ServiceCallout. Just assign using the same template into an arbitrary new request message.

You said "developer app is created but there is no product attached to it" . Can you show us the response payload?

Finally, Siddharth said it. But just in case you missed it, take good care when you use Management APIs in proxies.

Follow this Question

Answers Answers and Comments

48 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

Related Questions

Management API call to delete a product associated to an app 1 Answer

How do I revoke developer apps on the basis of the apikey only 2 Answers

Ip Whitelisting for Apigee management APIS 4 Answers

Management API calls returns 504 error sometimes 1 Answer

Metadata standards used to describe the API services 1 Answer

  • 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
© 2021 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
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • 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
  • Badges