Comments (4)
@xylix That openapi branch look really nice, I took the liberty of taking the aw-models code and modified it a little since that part looked pretty good already. I only changed your schema generation of Duration which was kind of strange.
It's OK if everything is not finished, let's take it in small steps.
from aw-server-rust.
Oh, didn't know it was that easy.
The only reason why I said it shouldn't be implemented is because rocket+serde (our HTTP lib + JSON (de)serializer) cannot export JSON schemas so we would have to do duplicate work managing both. Not really a big deal, but less ideal than how simple it is with flask-restplus.
from aw-server-rust.
I started implementing an automated swagger spec using rust crate rokapi. Basically the implementation requires us to add JsonSchema
macro to most endpoint, and use a bit less custom status messages etc. It's very WIP so I'm not opening a PR yet but I think the support is doable, with some minor changes on our endpoints etc.
master...xylix:dev/openapi-spec-rokapi
from aw-server-rust.
Right I didn't actually remember to mention it here but I tried it again a couple weeks ago: master...xylix:openapi-spec . There's still some weirdness especially with getting custom HTTP returns to serialize / spec correctly.
But #159 looks good.
from aw-server-rust.
Related Issues (20)
- Bitdefender quarantines aw-server-rust.exe v0.12.1 HOT 1
- Taking datastore lock failed, returning 504: poisoned lock: another task failed inside HOT 7
- getting 404 shortly after starting with aw-qt HOT 6
- change makefile to default to user writable directory for install by default HOT 3
- Bump rocket and rocket_cors HOT 1
- running get_events from aw_client returns events in reverse order HOT 1
- Persist settings to server HOT 8
- Pins cpu usage at 100% HOT 4
- Major data loss -- server doesn't appear to write data to disk properly HOT 2
- Called `Option::unwrap()` on a `None` value HOT 2
- No log file found on startup
- Error loading common words in "Uncategorized events"
- No rule to make target 'build' HOT 1
- "poisoned lock: another task failed inside" HOT 6
- This is really a great project. I would like to help you with some functionalities. Please let me know where to start. HOT 4
- database upgrade causes all data lost HOT 4
- Encryption at rest for database files HOT 1
- Error: No db found in sync folder HOT 3
- Possible database corruption and 100% CPU after Windows updates
- aw-sync old libssl dependency HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aw-server-rust.