Skip to content

Commit 1294326

Browse files
authored
Merge pull request #3348 from metacpan/haarg/api-v1
switch API backend to use api.metacpan.org/v1
2 parents 27d6ef4 + b9b5f8a commit 1294326

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ with `precious path/to/file`
100100

101101
## Local Configuration Changes
102102

103-
The back end defaults to `fastapi.metacpan.org`. Running a local API server is
103+
The back end defaults to `api.metacpan.org/v1`. Running a local API server is
104104
optional and not required to hack on the front end. The address to the API being
105105
used can be changed in the `metacpan_web.conf` file. Ideally you would create a
106106
new file called `metacpan_web_local.conf` that contains

metacpan_web.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: MetaCPAN::Web
22

3-
api: https://fastapi.metacpan.org
3+
api: https://api.metacpan.org/v1
44
source_host: https://st.aticpan.org
55
web_host: https://metacpan.org
66
consumer_key: metacpan.dev

root/about/about.tx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ encourage more suggestions.
1616
MetaCPAN has two parts:
1717

1818
* [metacpan.org](https://metacpan.org), a front end to...
19-
* [fastapi.metacpan.org](https://fastapi.metacpan.org/) the API
19+
* [api.metacpan.org](https://api.metacpan.org/) the API
2020

2121
So
2222
[https://metacpan.org/pod/Moose](/pod/Moose)
23-
vs [https://fastapi.metacpan.org/v1/module/Moose](https://fastapi.metacpan.org/v1/module/Moose)
23+
vs [https://api.metacpan.org/v1/module/Moose](https://api.metacpan.org/v1/module/Moose)
2424

2525
MetaCPAN is [a community effort](/about/contributors), with all the code freely
2626
available on GitHub ([www](https://github.com/metacpan/metacpan-web),

root/about/development.tx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ A good first read is the "[How to contribute](https://github.com/metacpan/metacp
9797

9898
API: [https://github.com/metacpan/metacpan-api](https://github.com/metacpan/metacpan-api)
9999

100-
Swagger docs: [https://fastapi.metacpan.org/static/index.html](https://fastapi.metacpan.org/static/index.html)
100+
Swagger docs: [https://api.metacpan.org/v1/static/index.html](https://api.metacpan.org/v1/static/index.html)
101101

102102
Example scripts: [https://github.com/metacpan/metacpan-examples](https://github.com/metacpan/metacpan-examples)
103103

root/about/faq.tx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ See [CPAN Bus Factor](https://www.olafalders.com/2021/06/30/cpan-bus-factor/).
7171

7272
## Where can I find the API docs?
7373

74-
The API docs can be found by visiting [fastapi.metacpan.org](https://fastapi.metacpan.org).
75-
API requests need to be sent to fastapi.metacpan.org.
74+
The API docs can be found by visiting [api.metacpan.org](https://api.metacpan.org).
75+
API requests need to be sent to api.metacpan.org/v1/.
7676

7777
## How can I try the API?
7878

@@ -108,7 +108,7 @@ and/or using multiple browsers.
108108
To fix this:
109109

110110
1. Disconnect all identities
111-
2. Remove all cookies from `metacpan.org` and `fastapi.metacpan.org`
111+
2. Remove all cookies from `metacpan.org` and `api.metacpan.org`
112112
3. Reconnect via one identity
113113
4. Connect to PAUSE
114114

@@ -160,7 +160,7 @@ in the MetaCPAN account is initialized from those sources
160160
any changes made to those files.
161161

162162
If you, as a PAUSE author would like to keep them in sync, you can always export your MetaCPAN
163-
account information in json format by accessing https://fastapi.metacpan.org/author/PAUSEID
163+
account information in json format by accessing https://api.metacpan.org/v1/author/PAUSEID
164164
(replacing the word PAUSEID by your own PAUSEID). Then you can upload the result as author-*.json
165165
with a higher version number than the last one you uploaded.
166166
The PAUSE account information need to be updated manually via

root/base.tx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<li><a href="/recent">Recent</a></li>
5151
<li><a href="/about/faq">FAQ</a></li>
5252
<li><a href="/tools">Tools</a></li>
53-
<li><a href="https://fastapi.metacpan.org/">API</a></li>
53+
<li><a href="https://api.metacpan.org/">API</a></li>
5454
</ul>
5555
%% }
5656
<ul class="nav navbar-nav navbar-right">
@@ -174,7 +174,7 @@
174174
<a href="/tools">Tools</a>
175175
</div>
176176
<div class="footer-link">
177-
<a href="https://fastapi.metacpan.org/">API</a>
177+
<a href="https://api.metacpan.org/">API</a>
178178
</div>
179179
<div class="footer-link">
180180
<a href="https://www.perl.org/">Perl.org</a>

t/controller/source.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test_psgi app, sub {
5151
my @versioned_link_tests = (
5252
{
5353
xpath => '//a[text()="Raw code"]/@href',
54-
expected => qr{\bfastapi.metacpan.org/},
54+
expected => qr{\bapi\.metacpan\.org/v1/},
5555
desc => 'raw code points to fastapi'
5656
},
5757
{

0 commit comments

Comments
 (0)