Open mkm17 opened 5 months ago
I think usually for the get we do not specify the Default properties and just return everything as it returns a single item. LGTM 👍 @pnp/cli-for-microsoft-365-maintainers anyone? anything? anytime? 😉 before we open it up 😊
@mkm17 maybe one comment I though of just now. Wont it be more aligned with what we have in CLI to specify the modelUniqueId
as id
not uniqueId
?
@Adam-it
I saw that in results of syntex endpoints there are sometimes both properties provided. I didn't want to make a confusion that in one command you get id
and uniqueId
and in the second one you have to use uniqueId
as id
.
But let me double check it because maybe we should simply return only uniqueId
as Id in all cases.
@Adam-it ok, in this case and others related to Syntex, I will change to id
, but in the description, I will leave information that the unique ID is needed. Would that be ok?
yes that works for me
Another nice job with speccing this out @mkm17! A bit similar to at spo premium contentcenter list
, let's replace all the occurrences of Syntex
with SharePoint Premium
. For the option description at --siteUrl
, here we also need to change content centre
to content center
. This typo also appears in the examples.
On smaller detail, in your examples, there are two spaces between your command and the first option. get --siteUrl
@Jwaegebaert same here, all proposed changes applied :)
Nice, let's wait a bit regarding the naming for the command and then we can open it up. Do you want to work on this one, or open it up?
@mkm17 awesome work 👏. Lets get this 🚢ed
I can take also this one ;)
hi @mkm17, This issue will take part in the Hacktoberfest event which will take part during October. You may read more about this event here: https://github.com/pnp/cli-microsoft365/discussions/6383
If you want to participate and make this PR count towards this event please be sure to open the PR in October (no sooner and no later 😉)
Usage
m365 spp model get [options]
Description
Retrieve information about a SharePoint Premium document understanding model
Options
-u, --siteUrl <siteUrl>
-i, --id [id]
-t, --title [title]
--listPublications
Examples
Retrieve information about a SharePoint Premium document understanding model, using model UniqueId
Retrieve information about a SharePoint Premium document understanding model, using model Title
Additional Info
Endpoints to be used- https://learn.microsoft.com/en-us/sharepoint/dev/apis/syntex/rest-getbyuniqueid-method https://learn.microsoft.com/en-us/sharepoint/dev/apis/syntex/rest-getbytitle-method