Skip to content

Replicating functionality from / deprecating scaife-cts.perseus.org #590

Open
@jacobwegner

Description

@jacobwegner

The changes provided by #566 (deployed in the v2022-08-30-001 release have allowed us to remove the dependency on scaife-viewer/scaife-cts-api (powering scaife-cts.perseus.org.

I now realize that there have been other users of scaife-cts.perseus.org that were not aware of the changes in v2022-08-30-001 release or that content is no longer being updated there.

This issue serves to do a few things:

As part of development of Beyond Translation, there will also be a GraphQL API that should be able to replicate the functionality from scaife-cts.perseus.org.

Current APIs on scaife.perseus.org

(also formatted as a list)

Purpose Endpoint name scaife-cts scaife equivalent
Retrieve the XML for a passage of a text GetPassage https://scaife-cts.perseus.org/api/cts?request=GetPassage&urn=urn:cts:greekLit:tlg0059.tlg002.perseus-grc2 https://scaife.perseus.org/library/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2/cts-api-xml/
Retrieve children references GetValidReff https://scaife-cts.perseus.org/api/cts?request=GetValidReff&urn=urn:cts:greekLit:tlg0059.tlg002.perseus-grc2 https://scaife-dev.perseus.org/library/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2/cts-api-xml/reffs/?level=1
Retrieve a list of available resources GetCapabilities https://scaife-cts.perseus.org/api/cts?request=GetCapabilities https://scaife.perseus.org/library/json/
Retrieve a passage and its metadata GetPassagePlus https://scaife-cts.perseus.org/api/cts?request=GetPassagePlus&urn=urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:17 https://scaife.perseus.org/library/passage/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:17/json/
Retrieve previous and following passage of a given urn GetPrevNextUrn https://scaife-cts.perseus.org/api/cts?request=GetPrevNextUrn&urn=urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:17 Headers (Gist) from https://scaife.perseus.org/library/passage/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2:17/json/
Retrieve the first child of given URN GetFirstUrn https://scaife-cts.perseus.org/api/cts?request=GetFirstUrn&urn=urn:cts:greekLit:tlg0059.tlg002.perseus-grc2 https://scaife.perseus.org/library/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2/json/ (.first_passage)
Retrieve metadata about given edition or translation GetLabel https://scaife-cts.perseus.org/api/cts?request=GetLabel&urn=urn:cts:greekLit:tlg0059.tlg002.perseus-grc2 https://scaife.perseus.org/library/urn:cts:greekLit:tlg0059.tlg002.perseus-grc2/json/

Please leave a comment on this issue if there is a desire to have a particular scaife-cts-api endpoint ported over "verbatim", and we'll see what we can do to accomodate!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Accepted / Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions