Comments (9)
not sure why would anyone prefer simple REST APIs.
Because it is
simple
as you may generate the output without any dependencies, and it would work.
from mycorrhiza.
I'd propose using /api
or /json
base route and /<api/json>/about
instead of /mycorrhiza
, though.
from mycorrhiza.
as you may generate the output without any dependencies, and it would work.
What do you mean "without dependencies"? What dependencies do you need to make a single POST request?
from mycorrhiza.
Stop butthurting, please. At least we have a kind of common ground that we should change existing JSON API to utilize encoding/json
. Sure, it is nearly standard, so why not.
The point which started the discussion is usage of more complex API, like GraphQL. My opinion is that plain JSON API complies the project's philosophy of sm0lness, nothing more, nothing less.
from mycorrhiza.
To be honest, GraphQL is much more robust and efficient. Not sure why would anyone prefer simple REST APIs.
from mycorrhiza.
What do you mean "without dependencies"?
I literally mean that Mycorrhiza generates JSON output from a template file. Cheap, easy, just working.
What dependencies do you need to make a single POST request?
If you don't need to provide JSON data as an input, it's nothing above we already have. If you do need, encoding/json
is out-of-the-box, AFAIK. GraphQL, on the other hand, does require at least graphql-go
, if not more.
from mycorrhiza.
I literally mean that Mycorrhiza generates JSON output from a template file. Cheap, easy, just working.
What the fuck why would you use templates for generating JSON responses, encoding/json is already used everywhere and GraphQL responses are encoded as JSON too
If you don't need to provide JSON data as an input, it's nothing above we already have. If you do need,
encoding/json
is out-of-the-box, AFAIK. GraphQL, on the other hand, does require at leastgraphql-go
, if not more.
That's, like, an encoding library every proper language has?
from mycorrhiza.
Just to note, I've dropped both -json URLs some time ago
from mycorrhiza.
Unclear. Maybe add something about Betula and ActivityPub. There's no real issue yet, so closing for now.
from mycorrhiza.
Related Issues (20)
- Categories is not available HOT 8
- Make -create-admin more known HOT 1
- Rename hypha renames git repo instead HOT 5
- custom.css file HOT 6
- Caching static resources HOT 2
- Replace default static files HOT 5
- naming hypha 'wiki' results in unexpected behavior HOT 1
- A proper admin creation
- Language should be picked in settings by admins, not on client
- External links with a globe icon should always be on the same line HOT 7
- Add local time buttons in the editor
- Interwiki transclusion
- Can't remove media file from hypha HOT 4
- Math/LaTeX support in markup HOT 2
- Decrease tab-size HOT 1
- Search in hyphae content HOT 3
- Auto rename backlinks HOT 9
- Mycorrhiza 1.15.1 HOT 1
- Save and edit
- Very technical error message, when trying to edit a hypha being logged out 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 mycorrhiza.