{ 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
    • 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
1
Question by Yegor Pomortsev · May 27, 2015 at 09:37 PM · 1.5k Views OpenAPI - Swagger SpecAPI Studio

How do I simulate a given Swagger example response value in API Studio?

http://playground.apistudio.io/173a311c-945b-43c1-9cdd-24734a89c372

I've added an example to the /hello resource to to simulate the response {"message": "Hello, world!"}, but I get {"message": "Sample text"} when making a request through "Try this operation" in the right panel.

Comment
Add comment
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

Close

3 Answers

  • Sort: 
avatar image
1
Best Answer

Answer by Anil Sagar @ Google   · May 28, 2015 at 03:07 AM

Dear @Yegor Pomortsev ,

Response logic of the hello world api is defined in hello_world.js controller file hello function. Right now, these files are not editable using API Studio due to beta release. But, You can able to launch your own API Studio on local machine using much more powerful apigee-127 open source tool. You can get started with apigee-127 here. Check out the videos.

API Studio you see now is just the first beta release, and there’s still lots of stuff we need to add, but we think you’ll find it pretty useful and we want to hear your feedback as you try it out. We’ll release new capabilities iteratively in the coming weeks and months.

Cheers,

Anil Sagar

Comment
Add comment · 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
1

Answer by Anil Sagar @ Google   · May 28, 2015 at 05:14 AM

Dear @Yegor Pomortsev ,

API Studio allows you to play with existing APIs and create documentation for your APIs. If you already have your own hello world API then you can use API studio to generate documentation as well as play with your API.

See an example here in API Studio where we display PET Store API which connects to API service petstore.swagger.wordnik.com . Similarly, You can connect with your hello world API if it is already hosted some where. If you are looking for free API hosting platforms then you can use Apigee Edge and expose your API using Apigee Edge Node.js containers.

Cheers,

Anil Sagar

Comment
Add comment · 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
0

Answer by Prabhat Jha · Jun 04, 2015 at 01:34 AM

We will have what you are asking in about 2 weeks time period where mock server will honor the example you have in your Swagger spec. Overall mock server is going to get better.

Comment
Add comment · 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

Follow this Question

Answers Answers and Comments

11 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

Related Questions

Supporting models with composition in API Studio 1 Answer

Swagger question 1 Answer

uploading swagger documentation on portal 2 Answers

Proxy naming convention best practices when created from an Open API definition or Swagger spec 1 Answer

Swagger Editor 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
© 2019 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
  • 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
  • Members
  • Badges