-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add INARA & Community Goals api #11
Comments
Adaptive Cache TimingApi method services will set the cache time but implement an adaptive cache that increases the time if there has been no change in the data for an extended period. e.g. Cache for 1 hour, if no changes in 3 days change cache expiry to 4 hours, if no changes after 7 days change cache expiry to 1 day; any update resets the cache time to 1 hour. Knowing where the cache is in the current cycle will require a setting (platform specific) so better left to consuming code. Implement a minimum 1 hour cache time in the api service but allow consumer to increase it. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days. |
|
getCommanderProfileReturns basic information about a commander from Inara like ranks, squadron, etc. eventData Input Properties
Note: The 'commanderName' in the output is returned just when the 'searchName' and commander's in-game name exactly match (and is known). When there is no exact match, other possible names are returned in the 'otherNamesFound' list (up to 20 records). NotesUse Postman to research response when:
|
getCommanderProfile ResearchExact MatchData returned in "header": {
"eventData": {
"userID": "151725",
"userName": "Irongut"
},
"eventStatus": 200
}, EDlib's Including a commanderName property with a user api key doesn't change the response. Partial MatchLike an exact match, headers are the only difference in response between a partial match with an app api key and a partial match with a user api key. Partial match returns the most likely result and a list of other names found. Compared to an exact match:
"otherNamesFound": [
"IronGear",
"Irongrip",
"irongear_",
"Ironglove",
"Irongaming",
"Irongamer39",
"IronGhost24",
"Irongolem27",
"IronGremlin",
"IronGauntlet",
"Ironghost250",
"Irongunner1224",
"IronGAMER 76201",
"IronGlint713649"
] User Api Key OnlyThe response with only a user api key and no searchName parameter is the same as an exact match with a user api key. (The data is for the user who matches the api key.) |
Additional ResearchResearch with Postman.
Non-existent Cmdr with user api key: {
"header": {
"eventData": {
"userID": "151725",
"userName": "Irongut"
},
"eventStatus": 200
},
"events": [
{
"eventStatus": 204,
"eventStatusText": "No results found."
}
]
} Unit Tests
|
Feature Request
Port INARA & Community Goals api from EliteALD. Allow new services in EDlib or consuming code to add new INARA api methods.
Add getCommanderProfile API to Demo app.too likely to be throttledRequires
Linked To
#14 Make the library linker safe
#56 Rework News & CG classification
#60 Galactic Standings is not link safe
irongut/EliteALD#154 Complete transfer of code to EDlib
The text was updated successfully, but these errors were encountered: