This problem is solved:
The 415 error should be a content-type problem, but angularjs supports post contentType="application/json" by default. The reason for this problem is that Apigee Edge and APIGEE act as a bridge between web service providers and APP developers. Provides a relatively stable interface for both parties to connect, making the developer's development process more unified and consistent, and improving development efficiency; making the service provider's APP easier to manage; 415 appears when angular sends a post request to the background because it is in http There is no grant type configured for web and server connections. an app sends it's own credentials (the Client ID and Client Secret) to a GenerateAccessToken endpoint on Apigee Edge. If the credentials are valid, Edge returns an access token to the client app. Reference: http://apigee.com/docs/api-services/content/oauth-20-client-credential...
400: The error is that the RequestBody is not configured and the parameters are incorrectly configured.
All this problem should be configured with parameters in the angular http service as follows:
data: {'grant_type': 'client_credentials'},
data: { 'Id': '11' }
The problem is solved! Hope it is useful to everyone...
This problem is solved:
The 415 error should be a content-type problem, but angularjs supports post contentType="application/json" by default. The reason for this problem is that Apigee Edge and APIGEE act as a bridge between web service providers and APP developers. Provides a relatively stable interface for both parties to connect, making the developer's development process more unified and consistent, and improving development efficiency; making the service provider's APP easier to manage; 415 appears when angular sends a post request to the background because it is in http There is no grant type configured for web and server connections. an app sends it's own credentials (the Client ID and Client Secret) to a GenerateAccessToken endpoint on Apigee Edge. If the credentials are valid, Edge returns an access token to the client app. Reference: http://apigee.com/docs/api-services/content/oauth-20-client-credential...
400: The error is that the RequestBody is not configured and the parameters are incorrectly configured.
All this problem should be configured with parameters in the angular http service as follows:
data: {'grant_type': 'client_credentials'},
data: { 'Id': '11' }
The problem is solved! Hope it is useful to everyone...