Skip to content

MODLD-585: Change Linked data API URIs#35

Merged
pkjacob merged 2 commits intomasterfrom
MODLD-585
Nov 27, 2024
Merged

MODLD-585: Change Linked data API URIs#35
pkjacob merged 2 commits intomasterfrom
MODLD-585

Conversation

@askhat-abishev
Copy link
Contributor

No description provided.

@askhat-abishev
Copy link
Contributor Author

in order to avoid merge conflicts README file will be updated after this PR is merged #33 (review)

$ref: '#/components/responses/internalServerErrorResponse'

/resource/metadata/{inventoryId}/id:
/linked-data/inventory-instance/{inventoryId}/resource-id:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't be limited to instance resource type, there are Authority types with inventoryId also.
We have renamed InstanceMetadata class to FolioMetadata because of that.
So why don't we use just /linked-data/resource/metadata/{inventoryId}/id?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pkjacob what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Let us make the change as Pavel proposed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

{
"methods": [ "POST" ],
"pathPattern": "/resource",
"pathPattern": "/linked-data/resource",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let us rename the "id" in line 6 to "linked-data".
Also, remove the providers with id "profile", "reindex" and "graph" and move everything under "linked-data" provider.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@pkjacob
Copy link
Contributor

pkjacob commented Nov 7, 2024

@askhat-abishev, Let us update README file also after #33 is merged.

@askhat-abishev
Copy link
Contributor Author

@askhat-abishev, Let us update README file also after #33 is merged.

sure @pkjacob I've already mentioned it in the comment to this PR

@pkjacob pkjacob self-requested a review November 22, 2024 19:33
@pkjacob pkjacob closed this Nov 22, 2024
@pkjacob pkjacob reopened this Nov 22, 2024
@sonarqubecloud
Copy link

@RestController
@RequiredArgsConstructor
public class AuthorityAssignmentController implements LinkedDataApi {
public class AuthorityAssignmentController implements AuthorityApi {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pkjacob @PBobylev @AndreiBordak I've added this change after rebase
please let me know if you are ok with it

@pkjacob pkjacob merged commit 5d2a43a into master Nov 27, 2024
@askhat-abishev askhat-abishev deleted the MODLD-585 branch November 28, 2024 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants