Create Service API Endpoint not parsing service name from path

Open
#130 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
api, documentation

Research direction

Start by reading the Create Service documentation at the linked endpoint and compare its path parameter with the reported PUT request and 400 response. Determine whether the documentation or the API behavior is inconsistent; done means the documented request format matches the accepted service-name handling.

Written by the indexing model from the issue text.

Description

https://docs.sprites.dev/api/v001-rc30/services/#create-service

These docs show that name just goes as a url param but then I get a 400 service name required

PUT /v1/sprites/jesse-amp/services/amp-runner
Content-Type: application/json

{"cmd": "/home/sprite/bin/start-amp-runner.sh", "args": []}
Response:

400 service name required

Running through a tailscale funnel

Dominant language
TypeScript
Stars
51
Forks
4
Avg merge
23h 57m
Merged PRs (30d)
12

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from superfly/sprites-docs

All issues in superfly/sprites-docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.