Bug 276675 - www/static-api: [NEW PORT] Simple application emulating a basic REST API
Summary: www/static-api: [NEW PORT] Simple application emulating a basic REST API
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Älven
URL: https://github.com/josejachuf/static-...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-28 02:40 UTC by jjachuf
Modified: 2025-11-12 10:58 UTC (History)
4 users (show)

See Also:
alven: maintainer-feedback? (db)
alven: maintainer-feedback? (yuri)


Attachments
static-api diff file (36.52 KB, patch)
2024-01-28 02:40 UTC, jjachuf
no flags Details | Diff
static-api diff file (36.67 KB, patch)
2025-03-08 00:19 UTC, Mark Linimon
no flags Details | Diff
[PATCH] www/static-api: [NEW PORT] Simple application emulating a basic REST API (57.82 KB, patch)
2025-10-06 21:09 UTC, Älven
alven: maintainer-approval? (jjachuf)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jjachuf 2024-01-28 02:40:59 UTC
Created attachment 248025 [details]
static-api diff file

This is a simple application emulating a basic REST API. It allows CRUD operations (Create, Read, Update, Delete) on different collections, where each collection is represented as a JSON file in the file system. If the collection does not exist, it is automatically created.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2025-03-08 00:19:45 UTC
Created attachment 258414 [details]
static-api diff file

^Triage: rebase patch.
Comment 2 Älven freebsd_committer freebsd_triage 2025-10-06 21:09:41 UTC
Created attachment 264357 [details]
[PATCH] www/static-api: [NEW PORT] Simple application emulating a basic REST API

Rebase to version 0.3.0
Comment 3 jjachuf 2025-10-22 02:02:35 UTC
I'm not sure what the next step is. I created this port quite some time ago and hadn’t received any updates until now. I see that the update I made on GitHub for version 0.3.0 has been picked up.
If you need my approval to proceed, please go ahead.
Comment 4 Älven freebsd_committer freebsd_triage 2025-10-22 03:05:05 UTC
Thank you! I indeed was waiting for your approval of my proposed changes to the port and now have it. Just need to wait for some more time for approval from my mentors to allow me to commit it. Or, if you like to have it sooner, I may try to ask fellow committer to have it landed to the tree.
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2025-11-12 10:57:17 UTC
0.3.0-g20250922 is incorrect.
It should be either 0.3.0-20250922, or it should be replaced with:
DISTVERSION=0.1.0-12
DISTREVISION=-gc508ad0

The latter comes from 'git describe --tags'.

I use the following script to get the full git revision qualifier:

#!/bin/sh

REPO=$1
REV=$2

GIT=git

DIR=$(echo $1 | sed -e 's|.*/|| ; s|\.git$||')

(
  git clone $REPO &&
  (cd $DIR && $GIT describe --tags $REV) &&
  rm -rf $DIR
)
Comment 6 Yuri Victorovich freebsd_committer freebsd_triage 2025-11-12 10:58:03 UTC
(In reply to Yuri Victorovich from comment #5)

Correction:

DISTVERSION=0.1.0-12
DISTVERSIONSUFFIX=-gc508ad0

This is printed by the above script.