<?xml version="1.0" encoding="UTF-8"?>
<!--
  EWP discovery manifest of the PIM test host in the EWP DEV network.
  Covers exactly one HEI, the PIM test institution test.pim-plattform.de.
  APIs: discovery (v6), echo (v2), institutions (v2); omobility-las follows later.
  Served from the war root as /ewp/manifest.xml; InstitutionsServlet reads institutions-covered and
  max-hei-ids from this same file.
-->
<manifest
    xmlns="https://github.com/erasmus-without-paper/ewp-specs-api-discovery/tree/stable-v6"
    xmlns:mf="https://github.com/erasmus-without-paper/ewp-specs-api-discovery/tree/stable-v6"
    xmlns:ewp="https://github.com/erasmus-without-paper/ewp-specs-architecture/blob/stable-v1/common-types.xsd"
    xmlns:sec="https://github.com/erasmus-without-paper/ewp-specs-sec-intro/tree/stable-v2"
    xmlns:r="https://github.com/erasmus-without-paper/ewp-specs-api-registry/tree/stable-v1"
    xmlns:xml="http://www.w3.org/XML/1998/namespace"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="https://github.com/erasmus-without-paper/ewp-specs-api-discovery/tree/stable-v6
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-api-discovery/stable-v6/manifest.xsd

        https://github.com/erasmus-without-paper/ewp-specs-api-registry/tree/stable-v1
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-api-registry/stable-v1/catalogue.xsd

        https://github.com/erasmus-without-paper/ewp-specs-architecture/blob/stable-v1/common-types.xsd
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-architecture/stable-v1/common-types.xsd

        https://github.com/erasmus-without-paper/ewp-specs-api-echo/blob/stable-v2/manifest-entry.xsd
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-api-echo/stable-v2/manifest-entry.xsd

        https://github.com/erasmus-without-paper/ewp-specs-api-institutions/blob/stable-v2/manifest-entry.xsd
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-api-institutions/stable-v2/manifest-entry.xsd

        https://github.com/erasmus-without-paper/ewp-specs-sec-intro/tree/stable-v2
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-sec-intro/stable-v2/schema.xsd

        https://github.com/erasmus-without-paper/ewp-specs-sec-cliauth-httpsig/tree/stable-v1
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-sec-cliauth-httpsig/stable-v1/security-entries.xsd

        https://github.com/erasmus-without-paper/ewp-specs-sec-cliauth-tlscert/tree/stable-v1
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-sec-cliauth-tlscert/stable-v1/security-entries.xsd

        https://github.com/erasmus-without-paper/ewp-specs-sec-srvauth-tlscert/tree/stable-v1
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-sec-srvauth-tlscert/stable-v1/security-entries.xsd

        https://github.com/erasmus-without-paper/ewp-specs-sec-srvauth-httpsig/tree/stable-v1
        https://raw.githubusercontent.com/erasmus-without-paper/ewp-specs-sec-srvauth-httpsig/stable-v1/security-entries.xsd"
>
    <host>
        <!-- Technical contact of the host operator (required; an alias, never a person). -->
        <ewp:admin-email>info@pim-plattform.de</ewp:admin-email>
        <ewp:admin-provider>PIM</ewp:admin-provider>
        <ewp:admin-notes>Test host of PIM in the EWP DEV network. Implements discovery, echo and institutions; omobility-las will follow.</ewp:admin-notes>

        <!--
          Each API entry lives in the namespace of that API's manifest-entry.xsd; the container
          is in the registry namespace (prefix r:).
        -->
        <r:apis-implemented>

            <!-- Discovery API v6: the url MUST point at this very manifest. -->
            <discovery
                xmlns="https://github.com/erasmus-without-paper/ewp-specs-api-discovery/blob/stable-v6/manifest-entry.xsd"
                version="6.0.0"
            >
                <url>https://test.pim-plattform.de/ewp/manifest.xml</url>
            </discovery>

            <!--
              Echo API v2. Client authentication: HTTP Signature; server authentication: TLS
              certificate and HTTP Signature (each method in its own namespace).
            -->
            <echo
                xmlns="https://github.com/erasmus-without-paper/ewp-specs-api-echo/blob/stable-v2/manifest-entry.xsd"
                version="2.0.1"
            >
                <http-security>
                    <sec:client-auth-methods>
                        <httpsig xmlns="https://github.com/erasmus-without-paper/ewp-specs-sec-cliauth-httpsig/tree/stable-v1"/>
                    </sec:client-auth-methods>
                    <sec:server-auth-methods>
                        <tlscert xmlns="https://github.com/erasmus-without-paper/ewp-specs-sec-srvauth-tlscert/tree/stable-v1"/>
                        <httpsig xmlns="https://github.com/erasmus-without-paper/ewp-specs-sec-srvauth-httpsig/tree/stable-v1"/>
                    </sec:server-auth-methods>
                </http-security>
                <url>https://test.pim-plattform.de/ewp/echo</url>
            </echo>

            <!-- Institutions API v2: data of the covered HEI; same security methods as Echo. -->
            <institutions
                xmlns="https://github.com/erasmus-without-paper/ewp-specs-api-institutions/blob/stable-v2/manifest-entry.xsd"
                version="2.2.0"
            >
                <http-security>
                    <sec:client-auth-methods>
                        <httpsig xmlns="https://github.com/erasmus-without-paper/ewp-specs-sec-cliauth-httpsig/tree/stable-v1"/>
                    </sec:client-auth-methods>
                    <sec:server-auth-methods>
                        <tlscert xmlns="https://github.com/erasmus-without-paper/ewp-specs-sec-srvauth-tlscert/tree/stable-v1"/>
                        <httpsig xmlns="https://github.com/erasmus-without-paper/ewp-specs-sec-srvauth-httpsig/tree/stable-v1"/>
                    </sec:server-auth-methods>
                </http-security>
                <url>https://test.pim-plattform.de/ewp/institutions</url>
                <!-- How many hei_id values one request may carry (more: HTTP 400). -->
                <max-hei-ids>2</max-hei-ids>
            </institutions>

        </r:apis-implemented>

        <!-- The one HEI this host acts for (manifest v6: at most one). A test institution: no other-id. -->
        <mf:institutions-covered>
            <hei xmlns="https://github.com/erasmus-without-paper/ewp-specs-api-registry/tree/stable-v1" id="test.pim-plattform.de">
                <name xml:lang="en">PIM Test University</name>
            </hei>
        </mf:institutions-covered>

        <!-- Key with which this host signs its requests (keyId = SHA-256 of the DER below). -->
        <client-credentials-in-use>
            <rsa-public-key>MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsmhhje72QIkDop7R3jKiVwqrgyEPN3PlESL71i/DC3To5xnIfyIlkUwv5fY23dRWBUXYB1HpuQu6VBS+PM4fwzdVsnK0o6Hpt30bUj9UieUEtf++0CJHrA/C9thANDWdPQAxyt8Nb7sKdW7efd9wQlZAszCqIZrDqjplEYWGHGKpezQUhEHdpxseaJaMF5//RI2AYDgBvD33szKEvMhhDvq48R2Odjo2I9E5r/P/C0QjTXgITGAKJL6GQfIDpzETpnT2eYHi14H5dszER4wb9K5HUpBm5MIqzwOdlHaQHovlJQBlI2RIpzaWNNEpPSBwC0YVlOrZGq7NPh2ziKpKYwIDAQAB</rsa-public-key>
        </client-credentials-in-use>

        <!-- Key with which this host signs its responses; the same key pair. -->
        <server-credentials-in-use>
            <rsa-public-key>MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsmhhje72QIkDop7R3jKiVwqrgyEPN3PlESL71i/DC3To5xnIfyIlkUwv5fY23dRWBUXYB1HpuQu6VBS+PM4fwzdVsnK0o6Hpt30bUj9UieUEtf++0CJHrA/C9thANDWdPQAxyt8Nb7sKdW7efd9wQlZAszCqIZrDqjplEYWGHGKpezQUhEHdpxseaJaMF5//RI2AYDgBvD33szKEvMhhDvq48R2Odjo2I9E5r/P/C0QjTXgITGAKJL6GQfIDpzETpnT2eYHi14H5dszER4wb9K5HUpBm5MIqzwOdlHaQHovlJQBlI2RIpzaWNNEpPSBwC0YVlOrZGq7NPh2ziKpKYwIDAQAB</rsa-public-key>
        </server-credentials-in-use>

    </host>
</manifest>
