Filsat - A transition platform for open source code and online coding tutorials.
An Initiative for human-centered Innovation in the Knowledge Sphere of the ETH Library Lab.
This project is a GraphQL API for the server side of the project Filsat developed in Python.
See Installation guide.
To run the server locally in your virtual environment (source env/bin/activate
):
python3 manage.py runserver
http://localhost:8000/graphql/
The following are some examples of queries you could use to populate or query your local project.
mutation CreateProject {
createProject(input: {
repoName: "web-photo-filter",
verNum: "2.2.1",
link: "https://github.com/fluster/web-photo-filter",
repoSize: 1,
progLang: "javascript",
description: "A Web Component to apply Instagram-like WebGL filters to photos"
}) {
project {
id
repoName
verNum
link
description
repoSize
progLang
description
}
}
}
query Projects {
projects {
id
repoName
verNum
link
description
repoSize
progLang
description
taskSet {
id
}
}
}
query Project {
project(id: 1) {
id
repoName
verNum
link
description
repoSize
progLang
description
taskSet {
id
}
}
}
mutation CreateTask {
createTask(input: {
description: "Please help me document my Web Components",
state: 1
complexity: 1
project: {
id: "2"
}
}) {
task {
id
description
state
complexity
}
}
}
query Tasks {
tasks {
id
description
state
complexity
docSet {
id
}
}
}
query Task {
task(id: 1) {
id
description
state
complexity
docSet {
id
content
rating
}
}
}
query Tasks {
tasks(search: 1) {
id
description
state
complexity
docSet {
id
}
}
}
mutation UpdateTask {
updateTask(id: 2, input: {
description: "Plz help me document this task"
state: 1
complexity: 4
project: {
id: "2"
}
}) {
task {
id
description
state
complexity
docSet {
id
content
rating
}
}
}
}
mutation CreateDoc {
createDoc(input: {
content: "Please help me document my component",
rating: 0
task: {
id: "2"
}
}) {
doc {
id
content
rating
}
}
}
mutation UpdateDoc {
updateDoc(id: 13, input: {
content: "Please help plz me document my component",
rating: 0
task: {
id: "2"
}
}) {
doc {
id
content
rating
}
}
}