{ 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
    • Adapter for Envoy
    • 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 /
  • API Design /
avatar image
0
Question by sravani Ganapam · Jan 07, 2019 at 02:00 PM · 125 Views spec

How to generate spec for new apigee edge beta version?

I tried to generate spec file from specgen. While uploading that generated file, I got errors in apigee edge. give me suggestion as soon as possible

Comment
Add comment Show 3
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 Siddharth Barahalikar   · Jan 07, 2019 at 02:34 PM 0
Link

@sravani Ganapam, please be more specific,

what file did you use?

what error are you facing?

provide details on what you are trying to do.

avatar image sravani Ganapam Siddharth Barahalikar · Jan 07, 2019 at 03:32 PM 0
Link

I have generated Spec file for the following Proxy URL and my input data is XML format.

API Proxy URL:

https://sravanig231-eval-test.apigee.net/createorder?apikey=Ee0zaerJzC99Mq14rWWk10HbxhXZWUuB

request body:

<Order> <Date>2003/07/04</Date> <CustomerId>284</CustomerId> <CustomerName>Acme Alpha</CustomerName> <Item> <ItemId>954</ItemId> <ItemName>Coupler</ItemName> <Quantity>5</Quantity> </Item> <Item> <ItemId>654</ItemId> <ItemName>Connector</ItemName> <Quantity>3</Quantity> </Item> <Item> <ItemId>579</ItemId> <ItemName>Clasp</ItemName> <Quantity>1</Quantity> </Item> </Order>

I am attaching spec file please verify once and give me suggesscreenshot-36.pngtions

screenshot-36.png (285.6 kB)
avatar image sravani Ganapam sravani Ganapam · Jan 07, 2019 at 03:36 PM 0
Link

screenshot-37.png

screenshot-37.png (280.3 kB)

Close

2 Answers

  • Sort: 
avatar image
0
Best Answer

Answer by Siddharth Barahalikar   · Jan 08, 2019 at 04:37 AM

Thanks for the details. It would have been better if you copy-pasted your Swagger.

You need to add a schema to your body parameter,

Sample schema,

 "parameters": [
          {
            "in": "query",
            "name": "query",
            "type":"string",
            "description": "some-descc",
            "required": true
          },
          {
            "name": "body",
            "in":"body",
            "description": "some-desc",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "param1": {
                  "type": "string"
                },
                "param2": {
                  "type": "string"
                }
              }
            }
          }
        ]

Comment
Add comment Show 2 · 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 sravani Ganapam · Jan 08, 2019 at 11:08 AM 0
Link

Thank you for your response.

avatar image sravani Ganapam · Jan 08, 2019 at 11:17 AM 0
Link

I tried to upload the spec in the format of json. while uploading the spec , it allows only yaml format. It does not support the json format of spec.

avatar image
0

Answer by Sean Mccormick · Jan 09, 2019 at 03:24 PM

Can you share the message you received when uploading the spec via Json (were you uploading a file, importing a URL, or using the editor)? I believe if you are entering json directly into the spec editor and it asks you if you want to convert it to YAML, you can answer "cancel" to that dialog and it will keep it as json format. File upload and URL import both support json format file types as well.

Thanks

-Sean

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

62 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

api2swagger is not working for non-Apigee APIs 0 Answers

API Proxy generated from SPEC 1 Answer

Blank specification screen - Spec Crashed (BUG) 1 Answer

I am not able to test the resource in SPECS Editor created in APIgee, however in postman it is successful 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
© 2021 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
  • Adapter for Envoy
  • 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
  • Badges