alpha
Login
or
Join now
microcosm.blue
/
microcosm-rs
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
openapi description, version, etc
author
phil
date
1 year ago
(May 7, 2025, 4:08 PM -0400)
commit
339e231e
339e231e5f20d95dfba8c94d29f0e59eb0ee4a29
parent
fd61d9a7
fd61d9a715833733b2282592fcae53aa4f8adabb
+18
-3
2 changed files
Expand all
Collapse all
Unified
Split
ufos
src
index_html.rs
server.rs
+4
ufos/src/index_html.rs
Reviewed
···
21
21
SwaggerUIStandalonePreset
22
22
],
23
23
layout: "StandaloneLayout",
24
24
+
deepLinking: true,
25
25
+
displayRequestDuration: true,
26
26
+
tryItOutEnabled: true,
27
27
+
requestSnippetsEnabled: true
24
28
});
25
29
};
26
30
</script>
+14
-3
ufos/src/server.rs
Reviewed
···
246
246
247
247
let context = Context {
248
248
spec: Arc::new(
249
249
-
api.openapi("UFOs", semver::Version::new(0, 0, 0))
250
250
-
.json()
251
251
-
.map_err(|e| e.to_string())?,
249
249
+
api.openapi(
250
250
+
"UFOs: Every lexicon in the ATmosphere",
251
251
+
env!("CARGO_PKG_VERSION")
252
252
+
.parse()
253
253
+
.inspect_err(|e| {
254
254
+
log::warn!("failed to parse cargo package version for openapi: {e:?}")
255
255
+
})
256
256
+
.unwrap_or(semver::Version::new(0, 0, 1)),
257
257
+
)
258
258
+
.description("Samples and statistics of atproto records by their collection NSID")
259
259
+
.contact_name("part of @microcosm.blue")
260
260
+
.contact_url("https://microcosm.blue")
261
261
+
.json()
262
262
+
.map_err(|e| e.to_string())?,
252
263
),
253
264
storage: Box::new(storage),
254
265
};