You are viewing the Apigee Management API reference documentation. For the main product docs, and to search all docs, go to https://docs.apigee.com. For cross-site search, click Search all in the search results.

Mock Target API

Mock RESTful target service endpoint.

Samples

Method
Description

GET

View status code and message

http://mocktarget.apigee.net/statuscode/{code}

View status code and message for the specified value.

GET

Validate access using basic authentication

http://mocktarget.apigee.netauth

Validates access using basic authentication. When you enter the URL into your browser, you are prompted to enter a username and password. Valid values are: Username: admin Password: secret Valid requests result in the following message: Access granted Note: When testing the execution of the API below, you will not be prompted to enter a username and password. Instead, enter the username and password (admin/secret) in the Basic HTTP dialog below by clicking Set. Then, click Send this request.  

POST

Send request and view request headers and body

http://mocktarget.apigee.net/echo

Send a request and view the resulting request headers and body in JSON format. The request payload can be specified using one of the following formats: application/json, application/x-www-form-urlencoded, or application/xml.

GET

View XML response

http://mocktarget.apigee.net/xml

View a sample response in XML format.

GET

Get help

http://mocktarget.apigee.net/help

View help information about available resources in HTML format.

GET

View personalized greeting

http://mocktarget.apigee.net/user

View a personalized greeting for the specified or guest user.

GET

View personalized greeting

http://mocktarget.apigee.net/

View a personalized greeting for the specified or guest user.

GET

View JSON response

http://mocktarget.apigee.net/json

View a sample response in JSON format

GET

View API affirmation

http://mocktarget.apigee.net/iloveapis

View API affirmation in HTML format.

GET

View request headers and body

http://mocktarget.apigee.net/echo

View the request headers and body in JSON format.

GET

View IP address

http://mocktarget.apigee.net/ip

View the IP address of the client in JSON format.

Help or comments?

  • If something's not working: Ask the Apigee Community or see Apigee Support.
  • If something's wrong with the docs: Click the "Send Feedback" button.
    (Incorrect? Unclear? Broken link? Typo?)