fermyon / code-things Goto Github PK
View Code? Open in Web Editor NEWComplete sample application for Spin Developers
License: Apache License 2.0
Complete sample application for Spin Developers
License: Apache License 2.0
This is a horizontal slice of implementing REST APIs for the User Stories #2, #3, #4, #5.
Rest API endpoint
--- REQUEST
POST /api/profile
{
"id": "...",
"handle": "...",
"avatar": "..."
}
--- RESPONSE
CREATED 201
Headers:
- LOCATION <url>
GET /api/profile/:handle
--- RESPONSE
OK 200
{
"id": "...",
"handle": "...",
"avatar": "..."
}
PUT /api/profile/:handle
{
"id": "...",
"handle": "...",
"avatar": "..."
}
--- RESPONSE
OK 200
{
"id": "...",
"handle": "...",
"avatar": "..."
}
--- REQUEST
DELETE /api/profile/:handle
--- RESPONSE
NO-CONTENT 204
It should also include setting up a mysql database.
As a user, I want to delete my profile so that I can remove my information from the community.
I ran the command 'cargo build' in api/profile, and then the dependency 'spin-sdk' was not found
% cargo build error: no matching package named
spin-sdk found location searched: https://github.com/fermyon/spin?tag=v1.0.0#df99be23 required by package ’profile-api v0.1.0 (/Users/zhang/EdgeSync/Code/code-things/api/profile)‘
Is it not possible to compile spin-sdk on top of macos_x86?
note: Undefined symbols for architecture x86_64:
"_outbound-pg_execute", referenced from:
spin_sdk::pg::outbound_pg::execute::h549ce941af2fcae7 in libspin_sdk-69d1de8d91ccc8d7.rlib(spin_sdk-69d1de8d91ccc8d7.spin_sdk.d0efae5e-cgu.8.rcgu.o)
"_outbound-pg_query", referenced from:
spin_sdk::pg::outbound_pg::query::h441e7bfc89690c70 in libspin_sdk-69d1de8d91ccc8d7.rlib(spin_sdk-69d1de8d91ccc8d7.spin_sdk.d0efae5e-cgu.8.rcgu.o)
"_spin-config_get-config", referenced from:
spin_sdk::config::spin_config::get_config::h3b773e34149c50a6 in libspin_sdk-69d1de8d91ccc8d7.rlib(spin_sdk-69d1de8d91ccc8d7.spin_sdk.d0efae5e-cgu.6.rcgu.o)
"_wasi-outbound-http_request", referenced from:
spin_sdk::outbound_http::wasi_outbound_http::request::h670f0bb86de2f30b in libspin_sdk-69d1de8d91ccc8d7.rlib(spin_sdk-69d1de8d91ccc8d7.spin_sdk.d0efae5e-cgu.14.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `profile-api` due to previous error
As a user, I want to create a profile so that I can customize my username/handle and profile picture.
As a user, I want to view my profile so that I can see my username/handle and profile picture.
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.