Skip to content

Creating services using the rest api always fails with "service name required" #109

@antonmagnus

Description

@antonmagnus

Steps to reproduce.
Create a new sprite $SPRITE_NAME

Run the example from the docs:

curl -X PUT
-H "Authorization: Bearer $SPRITE_TOKEN"
-H "Content-Type: application/json"
-d '{"args":["-m","http.server","8000"],"cmd":"python","http_port":8000,"needs":["postgres"]}'
"https://api.sprites.dev/v1/sprites/$SPRITE_NAME/services/$SERVICE_NAME"

Returns "service name required".

Same with basic services

curl -X PUT
-H "Authorization: Bearer $SPRITE_TOKEN"
-H "Content-Type: application/json"
-d '{"name":"testservice","cmd":"/bin/sh","args":["-c","echo hello"],"needs":[]}'
"https://api.sprites.dev/v1/sprites/$SPRITE_NAME/services/$SERVICE_NAME"

Returns "service name required"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions