Comment on page
Get All Projects
This API is used to retrieve user projects.
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
Key
GET : get all the projects
This API is used to retrieve user projects. pass the following URL parameters:
searchString : the search string provided by the user.
pageSize : the number of projects to display on the page.
startIndex : the starting point for the project results.
Key | Description |
---|---|
searchString : | search project |
startIndex : | get record start offset |
pageSize : | records on each page |
Response codes explanation:
Code | Details |
---|---|
200 | message: "ok" { response shown on right side } |
400 | request parameters missing |
500 | internal server error |
Take a look at how you might call this method using our official libraries, or via
curl
:curl
JS
Python
curl GET " https://ags.aeromegh.com/:searchString/:startIndex/:pageSize "
-H "Authorization: Bearer" <API_key>
-H "Content-Type: application/json"
-X GET
// require the myapi module and set it up with your API key
var myHeaders = new Headers();
myHeaders.append("Authorization", " Bearer" <API_key>);
myHeaders.append("Cookie", "connect.sid=s%3AELKZuTqqdLoy0B9gb-yPoaeJvm7d5wpQ.iktDzgaNyubVQ%2BNBOfk3hg%2Fa2daY6gb3SATW1v7Ut3Y");
var requestOptions = {
method:'GET',
headers: myHeaders,
redirect :'follow'
};
fetch("https://ags.aeromegh.com/AeroMegh/AeroCapture/projects/12/20/50/eb4d317f-6703-44ea-83e7-5c654b1df06a", requestOptions)
// Set your API key before making the request
import requests
url =" ${https://ags.aeromegh.com}/AeroMegh/AeroCapture/projects/12/20/50/eb4d317f-6703-44ea-83e7-5c654b1df06a"
payload = { }
headers = {
'Authorization' : 'Bearer' <API_key>,
'Cookie' : 'connect.sid=s%3AELKZuTqqdLoy0B9gb-yPoaeJvm7d5wpQ.iktDzgaNyubVQ%2BNBOfk3hg%2Fa2daY6gb3SATW1v7Ut3Y'
}
response = requests.request("GET", url, headers=headers, data=payload)
{
"projects": [
{
"id": "b1c98e24-ff71-41da-97fa-1107bc3b4247",
"project_name": "ndmvp2",
"plan_name": null,
"created_date": "2023-08-23T06:17:56.000Z",
"user_id": "edb1bf33-0a01-4362-8474-e54e97873391",
"location_name": null,
"location_latlng": null,
"pilot_id": "st=2023-09-11T00%3A02%3A58Z&se=2024-09-11T09%3A22%3A58Z&sp=racwdl&sv=2018-03-28&sr=c&sig=94WHOurXVxKFMEOCATOP1trAJRq12ZTgwYjA3PpleCk%3D",
"thumb": "https://pdrlimage.blob.core.windows.net/user-edb1bf33-0a01-4362-8474-e54e97873391/AeroGCSWorkspace/ndmvp2/plan1/Assets/planMap.png",
"plan_count": "1",
"tasks": "0",
"sharedData": {
"isShared": false,
"sharedBy": null,
"access_level": null
},
"images": 0
},
{
"id": "21a6b451-d47c-4535-a6b8-f798e7fcf7c0",
"project_name": "ndmvp1",
"plan_name": null,
"created_date": "2023-08-23T06:17:56.000Z",
"user_id": "edb1bf33-0a01-4362-8474-e54e97873391",
"location_name": null,
"location_latlng": null,
"pilot_id": "st=2023-09-11T00%3A02%3A58Z&se=2024-09-11T09%3A22%3A58Z&sp=racwdl&sv=2018-03-28&sr=c&sig=94WHOurXVxKFMEOCATOP1trAJRq12ZTgwYjA3PpleCk%3D",
"thumb": "https://pdrlimage.blob.core.windows.net/user-edb1bf33-0a01-4362-8474-e54e97873391/AeroGCSWorkspace/ndmvp1/test1/Assets/planMap.png",
"plan_count": "1",
"tasks": "0",
"sharedData": {
"isShared": false,
"sharedBy": null,
"access_level": null
},
"images": 0
}
],
"count": "13"
}
- 1.id: Unique identifier for the project or plan.
- 2.project_name: Name or title of the project.
- 3.plan_name: Name or title of the specific plan within the project.
- 4.created_date: Timestamp indicating when the project or plan was created.
- 5.user_id: Identifier for the user associated with this data.
- 6.location_name: Name or label associated with the location.
- 7.location_latlng: Latitude and longitude coordinates of the location.
- 8.pilot_id: Identifier for the pilot associated with the plan.
- 9.plan_count: Total count of plans associated with the project.
- 10.tasks: Information about tasks associated with the plan.
- 11.sharedData: Data related to sharing settings.
- isShared: Indicates if the data is shared.
- sharedBy: Identifier of the user who shared the data.
- access_level: Level of access granted to shared data.
- 12.images: Images associated with the plan.
- 13.count : number of projects
Last modified 2mo ago