Skip to content
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

feat: Add resources/info endpoint (DEV-792) #2309

Merged
merged 26 commits into from Dec 19, 2022

Commits on Dec 15, 2022

  1. Add route for getting information for resources /v2/resources/info

    includes orderBy [creationDate|lastmodficationDate], and order [ASC|DESC].
    
    Http Example request:
    
    GET /v2/resources/info?resourceClass=http%3A%2F%2F0.0.0.0%3A3333%2Fontology%2F0001%2Fanything%2Fv2%23Thing&order=DESC&orderBy=creationDate HTTP/1.1
    X-Knora-Accept-Project: http://rdfh.ch/projects/Lw3FC39BSzCwvmdOaTyLqQ
    
    Http Example response:
    {
    	"resources": [
    		{
    			"resourceIri": "http://rdfh.ch/0001/thing-with-pages",
    			"creationDate": "2021-05-11T10:00:00Z",
    			"lastModificationDate": "2021-05-11T10:00:00Z",
    			"isDeleted": false
    		},
    		{
    			"resourceIri": "http://rdfh.ch/0001/0JhgKcqoRIeRRG6ownArSw",
    			"creationDate": "2020-04-07T09:12:56.710717Z",
    			"lastModificationDate": "2020-04-07T09:12:56.710717Z",
    			"isDeleted": false
    		},
    		...
    	]
    }
    seakayone committed Dec 15, 2022
    Copy the full SHA
    37fd1ce View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    e378fad View commit details
    Browse the repository at this point in the history
  3. Use URIO type alias

    seakayone committed Dec 15, 2022
    Copy the full SHA
    e967b0f View commit details
    Browse the repository at this point in the history
  4. fmt

    seakayone committed Dec 15, 2022
    Copy the full SHA
    6a9ee95 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. Copy the full SHA
    3ab1478 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    d5c573d View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    6f78287 View commit details
    Browse the repository at this point in the history
  4. rename title

    seakayone committed Dec 16, 2022
    Copy the full SHA
    9a0c4ab View commit details
    Browse the repository at this point in the history
  5. Remove unused class

    seakayone committed Dec 16, 2022
    Copy the full SHA
    65712e5 View commit details
    Browse the repository at this point in the history
  6. Rename ResourceInfoRepoLive

    seakayone committed Dec 16, 2022
    Copy the full SHA
    4a2a0b7 View commit details
    Browse the repository at this point in the history
  7. Rename ResourceInfoRepoFake

    seakayone committed Dec 16, 2022
    Copy the full SHA
    71404ea View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    a8d9e76 View commit details
    Browse the repository at this point in the history
  9. fmt

    seakayone committed Dec 16, 2022
    Copy the full SHA
    4627d1a View commit details
    Browse the repository at this point in the history
  10. Copy the full SHA
    14aed93 View commit details
    Browse the repository at this point in the history
  11. Retain pattern of throwing an exception in the RouteUtilV2 getRequire…

    …dProjectFromHeader method
    seakayone committed Dec 16, 2022
    Copy the full SHA
    e695eb5 View commit details
    Browse the repository at this point in the history
  12. Remove translation of external to internal IRI from ResourceRouteV2 a…

    …s this is handled by the RestResourceInfoService itself
    seakayone committed Dec 16, 2022
    Copy the full SHA
    1b36d8a View commit details
    Browse the repository at this point in the history
  13. Copy the full SHA
    0e93589 View commit details
    Browse the repository at this point in the history
  14. Copy the full SHA
    2272e16 View commit details
    Browse the repository at this point in the history
  15. fmt

    seakayone committed Dec 16, 2022
    Copy the full SHA
    3954bfd View commit details
    Browse the repository at this point in the history
  16. Update webapi/src/it/scala/org/knora/webapi/slice/resourceinfo/api/Ir…

    …iConverterLiveSpec$.scala
    
    Co-authored-by: irinaschubert <irina.schubert@dasch.swiss>
    seakayone and irinaschubert committed Dec 16, 2022
    Copy the full SHA
    2bf016a View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    06bd297 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2022

  1. Copy the full SHA
    113973a View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    2acfb76 View commit details
    Browse the repository at this point in the history
  3. Add types

    seakayone committed Dec 19, 2022
    Copy the full SHA
    0c72d47 View commit details
    Browse the repository at this point in the history
  4. sort lines

    seakayone committed Dec 19, 2022
    Copy the full SHA
    e36e68f View commit details
    Browse the repository at this point in the history
  5. Add StringFormatter

    seakayone committed Dec 19, 2022
    Copy the full SHA
    8b163ff View commit details
    Browse the repository at this point in the history