Send Docs Feedback

Note: Most user interface tasks can be performed in Edge Classic or the New Edge experience. For an overview, getting started topics, and release notes specific to the New Edge experience, see the docs.

Mock Target API

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 folowing:

<TargetEndpoint name="default">
  <HTTPTargetConnection>
    <URL>http://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 http://mocktarget.apigee.net/help
View personalized greeting GET http://mocktarget.apigee.net
View personalized greeting GET http://mocktarget.apigee.net/user
View API affirmation GET http://mocktarget.apigee.net/iloveapis
View IP address GET http://mocktarget.apigee.net/ip
View XML response GET http://mocktarget.apigee.net/xml
View JSON response GET http://mocktarget.apigee.net/json
View request headers and body GET http://mocktarget.apigee.net/echo
Send request and view request headers and body POST http://mocktarget.apigee.net/echo
View status code and message GET http://mocktarget.apigee.net/statuscode/{code}
Validate access using basic authentication GET http://mocktarget.apigee.net/auth

The documentation was built using SmartDocs by importing the OpenAPI specification available in GitHub at: https://github.com/apigee/api-platform-samples/tree/master/default-proxies/helloworld/openapi/mocktarget.yaml. For more information about using SmartDocs, see Using SmartDocs to document APIs.

 

Help or comments?