cancel
Showing results for 
Search instead for 
Did you mean: 

SwaggerHub error 500 during update API definitions

Highlighted
Occasional Visitor

SwaggerHub error 500 during update API definitions

I tried to update my API's  swagger definition on mock server. For test i download swagger file from https://petstore.swagger.io/v2/swagger.json. And try to send POST request to swaggerhub.com/apis/was_mock/uber_private.

Where {owner} = was_mock  and {api} = uber_private.

Also  i added to header "Authorization" and my secret key. File attached as "form-data" with name "definition".

When i send request - I received folowing exception 

{
    "code": 500,
    "message": "There was an error processing your request. It has been logged (ID: 25c6ad4735c99ccd)"
}

 

image.png

 

1 REPLY 1
Moderator

Re: SwaggerHub error 500 during update API definitions

Hi terziisk,

 

In order to update the specification in SwaggerHub you need to use the POST method of 

SwaggerHub Registry API: https://app.swaggerhub.com/apis/swagger-hub/registry-api/1.0.45#/APIs/saveDefinition


Anastasia
Customer Care Team


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

New Here?
Join us and watch the welcome video:
Top Kudoed Authors