Comments (8)
Purely down to how I implemented it originally. A migration to the new format might mess up people's applications now. However, if you're familiar with Django and want to make the suggest migrations - open a PR.
from swapi.
Unfortunately I don't know a thing about Django.
Note: given that the API and schema will undoubtedly change as you will implement then other issues — like changing the pilots to be a dictionary of {name,href}
instead of directly an url
, etc — won't you create an /api/v2/
endpoint anyway?
from swapi.
I want to avoid hard coding versions in the URI. The URI isn't really used for that purpose. I was considering an http header to set the version and determine the response schema.
But yes - a lot of people want me to changes things (no one is actually making any contributions yet though) and those changes will probably all be rolled into a version 2 at some point. However - I am not accepting every single request otherwise it'll be a mess.
from swapi.
I feel you. I'd gladly help and do a PR but I don't know a thing neither in python nor Django (My stuff is ObjC, Ruby and Swift) :-/
Good luck and thx for this fun app :)
from swapi.
@AliSoftware It's tough when you put something in the public domain and then things start to use it - suddenly you have to support legacy. It's easier for software because versioning is easier, but with Apis it can be really tricky D:
from swapi.
Just remembered: there is also the issue that some values have n/a
where integers or decimals might be
from swapi.
You could use null
when values are n/a
;-)
from swapi.
http header to set the version and determine the response schema.
Using the Link:
header as described in section 8.2 of the JSON schema specification would be a very welcome change and unlikely to break existing clients. :)
from swapi.
Related Issues (20)
- Search with names. HOT 2
- Add a midi-chlorian count for the Force users
- Height of R2-D2 HOT 3
- Limit results number per page
- Films id does not match url id HOT 1
- SwapiSwift framework
- Does not provide all star wars films HOT 1
- The API is down HOT 1
- The Website is Down HOT 1
- Forked my own verson of SWAPI HOT 7
- swapi.dev - running service HOT 21
- swapi.py4e.com asking for donations?
- SSL Cert
- Swapi
- No heading "https"
- website has gone down in last 12 hours.
- The Website is down again
- Certification expired HOT 3
- No image for api resources
- All schemas return 404 HOT 1
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 swapi.