You're viewing Apigee Edge documentation.
Go to the
Apigee X documentation. info
Apigee provides a mock target RESTful API. Use the API in your own API-building experiments.
In Edge, you could specify one of these endpoints, passing an API key for security, with HTTPTargetConnection element code such as the following:
<TargetEndpoint name="default"> <HTTPTargetConnection> <URL>https://mocktarget.apigee.net</URL> <Properties> <Property name="retain.queryparams">apikey</Property> </Properties> </HTTPTargetConnection> </TargetEndpoint>
For more about target endpoints, see Endpoint properties reference. For information about API keys, see API keys.
The following table lists the endpoints in the mock target API.
Task | Method | Resource |
---|---|---|
Get help | GET | https://mocktarget.apigee.net/help |
View personalized greeting | GET | https://mocktarget.apigee.net |
View personalized greeting | GET | https://mocktarget.apigee.net/user |
View API affirmation | GET | https://mocktarget.apigee.net/iloveapis |
View IP address | GET | https://mocktarget.apigee.net/ip |
View XML response | GET | https://mocktarget.apigee.net/xml |
View JSON response | GET | https://mocktarget.apigee.net/json |
View request headers and body | GET | https://mocktarget.apigee.net/echo |
Send request and view request headers and body | POST | https://mocktarget.apigee.net/echo |
View status code and message | GET | https://mocktarget.apigee.net/statuscode/{code} |
Validate access using basic authentication | GET | https://mocktarget.apigee.net/auth |