Skip to content

link-foundation/lino-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lino-rest-api

Tests

REST API frameworks using Links Notation (LINO) instead of JSON.

Overview

This repository provides proof-of-concept implementations of REST API frameworks that use Links Notation for data serialization instead of JSON. Links Notation is a human-readable format for describing data using references and links.

Implementations

  • JavaScript/Bun - Express.js-based implementation for Node.js and Bun
  • Python - FastAPI-based implementation

Quick Start

JavaScript (Express.js/Bun)

import { createLinoApp } from "lino-rest-api";

const app = createLinoApp();

app.get("/hello", () => {
  return { message: "Hello, Links Notation!" };
});

app.listen(3000);

Python (FastAPI)

from lino_rest_api import LinoAPI

api = LinoAPI()

@api.get("/hello")
def hello():
    return {"message": "Hello, Links Notation!"}

Content Type

LINO APIs use text/lino as the content type for requests and responses.

Related Projects

License

Unlicense

About

Yet another REST API framework, using Links Notation instead of Json

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •