Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting post dates #1

Open
GSI opened this issue Jan 31, 2023 · 1 comment
Open

Allow setting post dates #1

GSI opened this issue Jan 31, 2023 · 1 comment

Comments

@GSI
Copy link

GSI commented Jan 31, 2023

Is it already possible to provide a date when publishing through the new command?

I am looking to mass-import existing markdown files, maintaining their original publishing dates.

@GSI
Copy link
Author

GSI commented Jan 31, 2023

I found this, which is perfectly acceptable in case wf-cli doesn't provide the functionality.

curl "http://localhost:8080/api/auth/login" \
        -H "Content-Type: application/json" \
        -X POST \
        -d '{ "alias": "user", "pass": "pass" }'

curl "http://localhost:8080/api/posts" \
        -H "Content-Type: application/json" \
        -H "Authorization: Token 05071cb0-6d7b-45e4-5734-68caf081aab1" \
        -X POST \
        -d '{ "created": "2006-01-02T15:04:05Z", "body": "This is a post.", "title": "My Post"  }'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant