cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

PowerAPP With CustomAPI

Hi Team,

I want to used Custom API with PowerAPP . For this , I Create a Swagger JSON File . Plz See Below !!

 

Swagger JSON :-

 

{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "MyAPI"
},
"host": "xyz",  
"schemes": [
"https",
"http"
],
"basePath": "/DefaultCollection/MyFirstProject/_apis",
"paths": {
"/test/runs?api-version=1.0": {
"get": {
"description": "Gets All  objects.\n",
"operationId": "GetAllObjects",
"responses": {
"200": {
"description": "Successful response",
"schema": {
"title": "ArrayOfItems",
"type": "array",
"items": {
"title": "Item",
"type": "object",
"properties": {
"id":
{
"type":"number"

},
"incompleteTests": {
"type":"number"
},
"isAutomated": {
"type":"boolean"
},
"name": {
"type":"string"
},
"notApplicableTests": {
"type":"number"
},
"passedTests": {
"type":"number"
},
"revision": {
"type":"number"
},
"state": {
"type":"string"
},
"totalTests": {
"type":"number"
},
"unanalyzedTests": {
"type":"number"
},
"iteration": {
"type":"string"
},
"url": {
"type":"string"
},
"webAccessUrl": {
"type":"string"
}

}
}
}
}
},
"security": [
{
"noAuth": []
}
]
}
}
},
"securityDefinitions": {
"noAuth": {
"type": "apiKey",
"name":"Authorization",
"in": "header",
"description": "Basic authentication"
}
}
}

 

 

After Created JSON File , I tested it with Swagger Editior and Give Successful Response .

After that , I Created a New Custom connection in PowerAPP , Connection Created Succesfully .

I Select Phone Layout in PowerAPP Studio. and Add this API as Data Source for First  Screen . I Selected a Verical Gallery and Paste it on First Screen . 

But When i am going to used this data Source for Screen . it giving me Error .

 

Error : ' The Service return an error . MyAPI!GetAllObjects:The Server return an Http Error'

 

Plz Suggest me , where i am wrong  .

1 REPLY 1
Anonymous
Not applicable

Is there no Soluition For this Problems ?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (58,422)