nramc / journey-api Goto Github PK
View Code? Open in Web Editor NEWJourney REST API Service
Journey REST API Service
"id": "id_1", "type": "Feature", "geometry": {"type": "Point", "coordinates": [11.6634, 48.1230]}, "properties": { "name": "München House", "category": "Residential", "city": "Munich", "country": "Germany", "tags": ["Ram", "Sakunthala", "Germany", "Munich"], "description": "Remember that happiness is a way of travel, not a destination.", "thumbnail": "/assets/test-data/img/2022_1.png"
AC 1: content type - application/json
AC 2: returns all available journeys
AC 3: Support pagination
AC 4: Support sorting
Basic support for query param:
Tips:
AC 1: Add Spring security
AC 2: Implement Basic Auth
AC 1: Implement rest endpoint to get journey data with id
AC 2: in json format if accept type application/json
AC 3: throw error if id not exists
AC 4: connect to db and fetch data
AC 1: Implement update feature http method PATCH
AC 2: Reusable to update partial data
AC 3: Define data types can be updated independently
AC 4: validation implemented
Ac 5: stored in DB
AC 1: endpoint PUT /journey/{id}
AC 2: Content Type "application/vnd.journey.api.images.v1+json"
AC 3: Payload
{
"url": <string>,
"assetId": <string>
}
If we could add createdDate and journeyDate, it would be really helpful for frontend sorting.
At the moment, only http status 201 being send to client when new journey created.
It will be helpful if we can send created journey entity id along with other details in response to create journey request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.